Upraviť

Zdieľať cez


CountdownEvent.AddCount Method

Definition

Increments the CountdownEvent's current count.

Overloads

AddCount()

Increments the CountdownEvent's current count by one.

AddCount(Int32)

Increments the CountdownEvent's current count by a specified value.

AddCount()

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

Increments the CountdownEvent's current count by one.

public:
 void AddCount();
public void AddCount ();
member this.AddCount : unit -> unit
Public Sub AddCount ()

Exceptions

The current instance has already been disposed.

The current instance is already set.

-or-

CurrentCount is equal to or greater than Int32.MaxValue.

See also

Applies to

AddCount(Int32)

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

Increments the CountdownEvent's current count by a specified value.

public:
 void AddCount(int signalCount);
public void AddCount (int signalCount);
member this.AddCount : int -> unit
Public Sub AddCount (signalCount As Integer)

Parameters

signalCount
Int32

The value by which to increase CurrentCount.

Exceptions

The current instance has already been disposed.

signalCount is less than or equal to 0.

The current instance is already set.

-or-

CurrentCount is equal to or greater than Int32.MaxValue after count is incremented by signalCount.

See also

Applies to