UserPrincipal.MiddleName Property

 

Gets or sets the middle name for the user principal.

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

public string MiddleName { get; set; }

Property Value

Type: System.String

The middle 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: