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
| Exception | Condition |
|---|
| System..::.InvalidOperationException |
The current instance is already set. -or- Or signalCount is greater than CurrentCount.
|
| System..::.ArgumentOutOfRangeException | signalCount is less
than 1. |
| System..::.ObjectDisposedException | The current instance has already been
disposed. |
See Also