CountdownEvent Methods
Collapse the table of content
Expand the table of content

CountdownEvent Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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) 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 the Object 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

Show:
© 2016 Microsoft