Signal Method (Int32)

Task Parallel System.Threading

Registers multiple signals with the CountdownEvent, decrementing its count by the specified amount.

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

Syntax

Visual Basic (Declaration)
Public Function Signal ( _
	signalCount As Integer _
) As Boolean
C#
public bool Signal(
	int signalCount
)

Parameters

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

Return Value

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

Exceptions

ExceptionCondition
System..::.InvalidOperationException The current instance is already set. -or- Or signalCount is greater than CurrentCount.
System..::.ArgumentOutOfRangeExceptionsignalCount is less than 1.
System..::.ObjectDisposedExceptionThe current instance has already been disposed.

See Also