Principal.Name Property

 

Gets or sets the name of this principal.

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

member Name : string with get, set

Property Value

Type: System.String

The name of the principal or null if the name attribute is not set.

Exception Condition
ArgumentNullException

The application tried to set the name to null.

InvalidOperationException

The underlying store does not support this property.

.NET Framework
Available since 3.5

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

Return to top
Show: