UserPrincipal.GivenName Property

 

Gets or sets the given name for the user principal.

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

public string GivenName { get; set; }

Property Value

Type: System.String

The given name of the user principal.

Exception Condition
InvalidOperationException

The underlying store does not support this property.

.NET Framework
Available since 3.5

System.DirectoryServices.AccountManagement
UserPrincipal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top
Show: