CountdownEvent.TryAddCount 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
增加 CurrentCount 的尝试。
重载
| TryAddCount() | 增加一个 CurrentCount 的尝试。 | 
| TryAddCount(Int32) | 增加指定值的 CurrentCount 的尝试。 | 
TryAddCount()
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
- Source:
- CountdownEvent.cs
增加一个 CurrentCount 的尝试。
public:
 bool TryAddCount();public bool TryAddCount();member this.TryAddCount : unit -> boolPublic Function TryAddCount () As Boolean返回
如果成功增加,则为 true;否则为 false。 如果 CurrentCount 已为零,则此方法将返回 false。
例外
已释放当前实例。
另请参阅
适用于
TryAddCount(Int32)
- 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 -> boolPublic Function TryAddCount (signalCount As Integer) As Boolean参数
- signalCount
- Int32
CurrentCount 的增量值。
返回
如果成功增加,则为 true;否则为 false。 如果 CurrentCount 已为零,则此方法将返回 false。
例外
已释放当前实例。
              signalCount 小于或等于 0。
              CurrentCount
               + 
              signalCount 等于或大于 Int32.MaxValue。