Export (0) Print
Expand All

ClaimsIdentity Methods

.NET Framework 4.5

The ClaimsIdentity type exposes the following members.

  Name Description
Public method AddClaim Adds a single claim to this claims identity.
Public method AddClaims Adds a list of claims to this claims identity.
Public method Clone Returns a new ClaimsIdentity copied from this claims identity.
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 of 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 ClaimsIdentity object.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HasClaim(Predicate<Claim>) Determines whether this claims identity has a claim that is matched by the specified predicate.
Public method HasClaim(String, String) Determines whether this claims identity has a claim with the specified claim type and value.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveClaim Attempts to remove a claim from the claims identity.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryRemoveClaim Attempts to remove a claim from the claims identity.
Top
Show:
© 2014 Microsoft