Principal.CheckDisposedOrDeleted Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

The Dispose method has been called on this principal object.


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

Principal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top