WindowsPrincipal Methods

The WindowsPrincipal type exposes the following members.

  Name Description
Public method AddIdentities Adds the specified claims identities to this claims principal. (Inherited from ClaimsPrincipal.)
Public method AddIdentity Adds the specified claims identity to this claims principal. (Inherited from ClaimsPrincipal.)
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. (Inherited from ClaimsPrincipal.)
Public method FindAll(String) Retrieves all or the claims that have the specified claim type. (Inherited from ClaimsPrincipal.)
Public method FindFirst(Predicate<Claim>) Retrieves the first claim that is matched by the specified predicate. (Inherited from ClaimsPrincipal.)
Public method FindFirst(String) Retrieves the first claim with the specified claim type. (Inherited from ClaimsPrincipal.)
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. (Inherited from ClaimsPrincipal.)
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. (Inherited from ClaimsPrincipal.)
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. (Inherited from ClaimsPrincipal.)
Public method IsInRole(Int32) Determines whether the current principal belongs to the Windows user group with the specified relative identifier (RID).
Public method IsInRole(SecurityIdentifier) Determines whether the current principal belongs to the Windows user group with the specified security identifier (SID).
Public method IsInRole(String) Determines whether the current principal belongs to the Windows user group with the specified name. (Overrides ClaimsPrincipal.IsInRole(String).)
Public method IsInRole(WindowsBuiltInRole) Determines whether the current principal belongs to the Windows user group with the specified WindowsBuiltInRole.
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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft