CountdownEvent Constructor

.NET Framework 4.6 and 4.5

Initializes a new instance of CountdownEvent class with the specified count.

Namespace:  System.Threading
Assemblies:   mscorlib (in mscorlib.dll)
  System.Threading (in System.Threading.dll)

public CountdownEvent(
	int initialCount
)

Parameters

initialCount
Type: System.Int32

The number of signals initially required to set the CountdownEvent.

ExceptionCondition
ArgumentOutOfRangeException

initialCount is less than 0.

iI initialCount is 0, the event is created in a signaled state.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft