PrincipalContext.Name Property

 

Gets the value specified as the name parameter in the constructor.

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

public string Name { get; }

Property Value

Type: System.String

The name of the domain or server for Domain contexts types, the host name for Machine context types, the name of the server hosting the ApplicationDirectory instance, or null if no name is set.

.NET Framework
Available since 3.5

System.DirectoryServices.AccountManagement
PrincipalContext Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top
Show: