ClaimsIdentity.Name Property

.NET Framework (current version)
 
System_CAPS_noteNote

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

Gets the name of this claims identity.

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

Public Overridable ReadOnly Property Name As String

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: