CountdownEvent Constructor
Collapse the table of content
Expand the table of content

CountdownEvent Constructor

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

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

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft