Represents a synchronization primitive that is signaled when its count reaches zero.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
<ComVisibleAttribute(False)> _ <HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization := True, _ ExternalThreading := True)> _ Public Class CountdownEvent _ Implements IDisposable |
C# |
---|
[ComVisibleAttribute(false)] [HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization = true, ExternalThreading = true)] public class CountdownEvent : IDisposable |
Remarks
All public and protected members of CountdownEvent are thread-safe and may be used
concurrently from multiple threads, with the exception of Dispose, which
must only be used when all other operations on the CountdownEvent have
completed, and Reset, which should only be used when no other threads are
accessing the event.
Inheritance Hierarchy
System..::.Object
System.Threading..::.CountdownEvent
System.Threading..::.CountdownEvent