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()

Exception Condition
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
Available since 3.5

System.DirectoryServices.AccountManagement
Principal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top
Show: