Edit

Share via


Transaction.CheckDisposed Method

Definition

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

protected:
 void CheckDisposed();
protected void CheckDisposed ();
Protected 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