Releases all resources used by the current instance of Barrier.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub Dispose |
| C# |
|---|
public void Dispose() |
Implements
IDisposable..::.Dispose()()()
Remarks
Unlike most of the members of Barrier, Dispose is not thread-safe and may not be
used concurrently with other members of this instance.
Exceptions
| Exception | Condition |
|---|---|
| System..::.InvalidOperationException | The method was invoked from within a post-phase action. |