ClaimsIdentity.Claims Property

.NET Framework (current version)

Gets the claims associated with this claims identity.

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

public virtual IEnumerable<Claim> Claims { get; }

Property Value

Type: System.Collections.Generic.IEnumerable<Claim>

The collection of claims associated with this claims identity.

The collection may contain entries that are null.

The claims contained in the Claims collection essentially describe the entity that is represented by the ClaimsIdentity. The claims describe the properties and rights possessed by the entity and can be examined by applications to make decisions about authentication and authorization.


The ClaimsPrincipal class has a Claims property as well. In the majority of cases you should access the user’s claims through the ClaimsPrincipal.Claims collection rather than through the Claims collection. You will need to access the claims of an individual ClaimsIdentity only in the cases where the principal contains more than one ClaimsIdentity and you need to evaluate or modify a specific identity.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Return to top