Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ClaimsIdentity::Name Property

.NET Framework (current version)
 

Gets the name of this claims identity.

Namespace:   System.Security.Claims
Assembly:  mscorlib (in mscorlib.dll)

public:
property String^ Name {
	virtual String^ get();
}

Property Value

Type: System::String^

The name or null.

Implements

IIdentity::Name

Returns the value of the first claim with a type that matches the name claim type set in the NameClaimType property. If no claim is found that matches the name claim type, returns null.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Return to top
Show:
© 2017 Microsoft