Export (0) Print
Expand All

ClaimsIdentity.Claims Property

.NET Framework 4.5

Gets the claims associated with this claims identity.

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

abstract Claims : IEnumerable<Claim> with get 
override Claims : IEnumerable<Claim> with 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 a null reference (Nothing in Visual Basic).

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.

NoteNote

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.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft