Export (0) Print
Expand All

ClaimsPrincipal Methods

.NET Framework 4.5

The ClaimsPrincipal type exposes the following members.

  Name Description
Public method AddIdentities Adds the specified claims identities to this claims principal.
Public method AddIdentity Adds the specified claims identity to this claims principal.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindAll(Predicate<Claim>) Retrieves all of the claims that are matched by the specified predicate.
Public method FindAll(String) Retrieves all or the claims that have the specified claim type.
Public method FindFirst(Predicate<Claim>) Retrieves the first claim that is matched by the specified predicate.
Public method FindFirst(String) Retrieves the first claim with the specified claim type.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Protected method GetObjectData Populates the SerializationInfo with data needed to serialize the current ClaimsPrincipal object.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HasClaim(Predicate<Claim>) Determines whether any of the claims identities associated with this claims principal contains a claim that is matched by the specified predicate.
Public method HasClaim(String, String) Determines whether any of the claims identities associated with this claims principal contains a claim with the specified claim type and value.
Public method IsInRole Returns a value that indicates whether the entity (user) represented by this claims principal is in the specified role.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2014 Microsoft