HostExecutionContext::Dispose Method (Boolean)

.NET Framework (current version)
 

When overridden in a derived class, releases the unmanaged resources used by the WaitHandle, and optionally releases the managed resources.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual void Dispose(
	bool disposing
)

Parameters

disposing
Type: System::Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

This method is called by the Dispose() method overload and the finalizer. Dispose() invokes this protected method with the disposing parameter set to true. The finalizer invokes this method with disposing set to false.

When the disposing parameter is true, this method releases all resources held by any managed objects that this HostExecutionContext references. This method invokes the Dispose method of each referenced object.

This method can be called multiple times by other objects. When overriding this method, be careful not to reference objects that have been previously disposed in an earlier call.

.NET Framework
Available since 4.0
Return to top
Show: