Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CountdownEvent Methods

The CountdownEvent type exposes the following members.

  NameDescription
Public method AddCount() Increments the CountdownEvent's current count by one.
Public method AddCount(Int32) Increments the CountdownEvent's current count by a specified value.
Public method Dispose() Releases all resources used by the current instance of the CountdownEvent class.
Protected method Dispose(Boolean) When overridden in a derived class, releases the unmanaged resources used by the CountdownEvent, and optionally releases the managed resources.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Reset() Resets the CurrentCount to the value of InitialCount.
Public method Reset(Int32) Resets the InitialCount property to a specified value.
Public method Signal() Registers a signal with the CountdownEvent, decrementing the value of CurrentCount.
Public method Signal(Int32) Registers multiple signals with the CountdownEvent, decrementing the value of CurrentCount by the specified amount.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryAddCount() Attempts to increment CurrentCount by one.
Public method TryAddCount(Int32) Attempts to increment CurrentCount by a specified value.
Public method Wait() Blocks the current thread until the CountdownEvent is set.
Public method Wait(CancellationToken) Blocks the current thread until the CountdownEvent is set, while observing a CancellationToken.
Public method Wait(Int32) Blocks the current thread until the CountdownEvent is set, using a 32-bit signed integer to measure the timeout.
Public method Wait(TimeSpan) Blocks the current thread until the CountdownEvent is set, using a TimeSpan to measure the timeout.
Public method Wait(Int32, CancellationToken) Blocks the current thread until the CountdownEvent is set, using a 32-bit signed integer to measure the timeout, while observing a CancellationToken.
Public method Wait(TimeSpan, CancellationToken) Blocks the current thread until the CountdownEvent is set, using a TimeSpan to measure the timeout, while observing a CancellationToken.
Top

Community Additions

ADD
Show:
© 2015 Microsoft