Surname Property
Collapse the table of content
Expand the table of content

UserPrincipal.Surname Property

 

Gets or sets the surname for the user principal.

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

public string Surname { get; set; }

Property Value

Type: System.String

The surname 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:
© 2016 Microsoft