ServerAgent.Dispose Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Dispose() |
Releases all resources used by this object. |
Dispose(Boolean) |
Releases the unmanaged resources used by this object and optionally releases the managed resources. |
Dispose()
Releases all resources used by this object.
public:
virtual void Dispose();
public void Dispose ();
Public Sub Dispose ()
Implements
Remarks
Calling Dispose allows the resources used by this object to be freed.
Applies to
Dispose(Boolean)
Releases the unmanaged resources used by this object and optionally releases the managed resources.
protected:
virtual void Dispose(bool disposing);
protected virtual void Dispose (bool disposing);
Protected Overridable Sub Dispose (disposing As Boolean)
Parameters
- disposing
- Boolean
If true, managed resources as well as unmanaged resources are released; if false, only unmanaged resources are disposed.
Remarks
If a wait handle was retrieved from the server agent, it must no longer be used, as it is invalidated by this method.