CountdownEvent.TryAddCount 메서드

정의

증분을 시도합니다 CurrentCount.

오버로드

Name Description
TryAddCount()

1씩 증가 CurrentCount 하려고 시도합니다.

TryAddCount(Int32)

지정된 값으로 증가 CurrentCount 하려고 시도합니다.

TryAddCount()

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

1씩 증가 CurrentCount 하려고 시도합니다.

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

반품

증분이 성공하면 CurrentCount 이 메서드가 반환 false됩니다.

예외

현재 인스턴스가 이미 삭제되었습니다.

추가 정보

적용 대상

TryAddCount(Int32)

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

지정된 값으로 증가 CurrentCount 하려고 시도합니다.

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

매개 변수

signalCount
Int32

늘릴 CurrentCount값입니다.

반품

증분이 성공하면 CurrentCount 반환 false됩니다.

예외

현재 인스턴스가 이미 삭제되었습니다.

signalCount 가 0보다 작거나 같습니다.

CurrentCount + signalCountInt32.MaxValue보다 크거나 같은 경우

적용 대상