Principal.Delete Method ()

 

Deletes the principal object from the store.

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

[SecurityCriticalAttribute]
public void Delete()

Exception Condition
InvalidOperationException

The object that is not persisted in the store.

The object has already been deleted.

The target context type must match the context type of the current principal.

.NET Framework
Available since 3.5

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

Return to top
Show: