Barrier Constructor (Int32, Action<Barrier>)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the Barrier class.
Assembly: System (in System.dll)
Parameters
- participantCount
- Type: System.Int32
The number of participating threads.
- postPhaseAction
- Type: System.Action<Barrier>
The Action<T> to be executed after each phase. null (Nothing in Visual Basic) may be passed to indicate no action is taken.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | participantCount is less than 0 or greater than 32,767. |
Show: