Dispose Method

Task Parallel System.Threading

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

ExceptionCondition
System..::.InvalidOperationException The method was invoked from within a post-phase action.

See Also