Principal.Delete Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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 Sub Delete

Exception Condition

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

Principal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top