Export (0) Print
Expand All

Principal.CheckDisposedOrDeleted Method

Determines whether the Dispose or Delete methods have been called on this class. This method is called by classes that derive from this principal class.

Namespace:  System.DirectoryServices.AccountManagement
Assembly:  System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)

protected void CheckDisposedOrDeleted()

ExceptionCondition
ObjectDisposedException

The Dispose method has been called on this principal object.

InvalidOperationException

The Delete method has been called on this principal object.

This method checks whether the object has been disposed before it determines whether it has been deleted.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft