Signal Method (Int32)
Collapse the table of content
Expand the table of content

CountdownEvent.Signal Method (Int32)

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

Registers multiple signals with the CountdownEvent, decrementing the value of CurrentCount by the specified amount.

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

public bool Signal(
	int signalCount
)

Parameters

signalCount
Type: System.Int32
The number of signals to register.

Return Value

Type: System.Boolean
true if the signals caused the count to reach zero and the event was set; otherwise, false.

ExceptionCondition
ObjectDisposedException

The current instance has already been disposed.

ArgumentOutOfRangeException

signalCount is less than 1.

InvalidOperationException

The current instance is already set. -or- Or signalCount is greater than CurrentCount.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft