Partager via


Membres ClaimsPrincipal

Provides methods that retrieve information about the current caller.

Les tableaux suivants répertorient les membres exposés par le type ClaimsPrincipal.

Public Constructeurs

  Nom Description
  ClaimsPrincipal Surchargé.  

Haut

Public Propriétés

  Nom Description
public property static AnonymousPrincipal Gets a IClaimsPrincipal with a ClaimsIdentity that contains zero claims.
public property Identities Gets the ClaimsIdentityCollection associated with this principal.
public property Identity Gets the IIdentity of the current principal.

Haut

Public Méthodes

(voir également Protégé Méthodes)

  Nom Description
public method Copy Returns a new T:Microsoft.IdentityModel.Claims.ClaimsPrincipal object copied from this object
public methodstatic CreateFromHttpContext Surchargé.  
public methodstatic CreateFromIdentities Surchargé.  
public methodstatic CreateFromIdentity Surchargé.  
public methodstatic CreateFromPrincipal Surchargé.  
public method Equals  Surchargé. (hérité de Object)
public method GetHashCode  (hérité de Object)
public method GetType  (hérité de Object)
public method IsInRole This class interprets IsInRole as the reflection of whether this principal possesses a claim specified by a configured list. The claim value has no bearing on the result.
public methodstatic ReferenceEquals  (hérité de Object)
public methodstatic SelectPrimaryIdentity This method iterates through the collection of ClaimsIdentities and determines which identity must be used as the primary one.
public method ToString  (hérité de Object)

Haut

Protégé Méthodes

  Nom Description
protected method Finalize  (hérité de Object)
protected method MemberwiseClone  (hérité de Object)

Haut

Voir aussi

Référence

Classe ClaimsPrincipal
Espace de noms Microsoft.IdentityModel.Claims

Copyright © 2008 Microsoft Corporation.Tous droits réservés.