संपादित करें

इसके माध्यम से साझा किया गया


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)

Source:
CountdownEvent.cs
Source:
CountdownEvent.cs
Source:
CountdownEvent.cs

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

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

Signal()

Source:
CountdownEvent.cs
Source:
CountdownEvent.cs
Source:
CountdownEvent.cs

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

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