Edit

Share via


ServerAgent.CheckDisposed Method

Definition

Throws an ObjectDisposedException if the object is in the disposed state.

protected:
 virtual void CheckDisposed();
protected virtual void CheckDisposed ();
Protected Overridable Sub CheckDisposed ()

Remarks

This routine should be called in the prolog of every public routine in this class and its derived classes. It ensures that no operations are performed on disposed objects.

Applies to