Edit

Share via


ServerAgent.Dispose Method

Definition

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.

Applies to