DirectoryContext.UserName Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the user name of the context.

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

public string UserName { get; }

Property Value

Type: System.String

The user name to use for access by this context.

.NET Framework
Available since 2.0
Return to top