ClaimsIdentity.Name Property


Gets the name of this claims identity.

 virtual property System::String ^ Name { System::String ^ get(); };
public virtual string Name { get; }
public virtual string? Name { get; }
member this.Name : string
Public Overridable ReadOnly Property Name As String

Property Value

The name or null.



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.

Applies to

See also