Principal::Delete Method ()

 
System_CAPS_noteNote

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

Deletes the principal object from the store.

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

public:
[SecurityCriticalAttribute]
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: