Barrier.Dispose Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Releases all resources used by the current instance of the Barrier class.
Assembly: System (in System.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | The method was invoked from within a post-phase action. |
Call Dispose when you are finished using the Barrier. The Dispose method leaves the Barrier in an unusable state. After calling Dispose, you must release all references to the Barrier so the garbage collector can reclaim the memory that the Barrier was occupying.
For more information, see [A17B0066-71C2-4BA4-9822-8E19332FC213] and [eb4e1af0-3b48-4fbc-ad4e-fc2f64138bf9].
Note: