Export (0) Print
Expand All

ClaimsIdentity.Name Property

.NET Framework 4.5

Gets the name of this claims identity.

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

public virtual string Name { 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.

.NET Framework

Supported in: 4.5.3
Show:
© 2014 Microsoft