Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ClaimsIdentity.Claims Property

.NET Framework 4.6 and 4.5

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.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft