CountdownEvent.Signal Method

Definition

Registers a signal with the CountdownEvent, decrementing the value of CurrentCount.

Overloads

Signal(Int32)

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

Signal()

Registers a signal with the CountdownEvent, decrementing the value of CurrentCount.

Signal(Int32)

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

public:
 bool Signal(int signalCount);
public bool Signal (int signalCount);
member this.Signal : int -> bool
Public Function Signal (signalCount As Integer) As Boolean

Parameters

signalCount
Int32

The number of signals to register.

Returns

Boolean

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

Exceptions

The current instance has already been disposed.

signalCount is less than 1.

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

See also

Applies to

Product Introduced

Signal()

Registers a signal with the CountdownEvent, decrementing the value of CurrentCount.

public:
 bool Signal();
public bool Signal ();
member this.Signal : unit -> bool
Public Function Signal () As Boolean

Returns

Boolean

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

Exceptions

The current instance has already been disposed.

The current instance is already set.

See also

Applies to

Product Introduced