Releases the unmanaged resources used by this object and optionally releases the managed resources.
Assembly: ServerAgent(in ServerAgent.dll)
|Visual Basic (declaration)|
Protected Overridable Sub Dispose ( _ disposing As Boolean _ )
|Visual Basic (usage)|
Dim disposing As Boolean Me. Dispose( disposing)
protected virtual void Dispose( bool disposing )
If true , managed resources as well as unmanaged resources are released; if false , only unmanaged resources are disposed.
If a wait handle was retrieved from the server agent, it must no longer be used, as it is invalidated by this method.