Gets the name of the current user.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As WindowsClaimsIdentity
Dim value As String

value = instance.Name

Syntax

Visual Basic
Public Overrides ReadOnly Property Name As String
C#
public override string Name { get; }
C++
public:
virtual property String^ Name {
		String^ get () override;
}
J#
/** @property */
public String get_Name ()
JScript
public override function get Name () : String

Exceptions

Exception type Condition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also