CountdownEvent.TryAddCount Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Attempts to increment CurrentCount by one.
Assembly: mscorlib (in mscorlib.dll)
Return Value
Type: System.Booleantrue if the increment succeeded; otherwise, false. If CurrentCount is already at zero, this method will return false.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The current instance has already been disposed. |
| InvalidOperationException | CurrentCount is equal to MaxValue. |
Show: