ClaimSet Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the collection of claims that are associated with an entity.
public ref class ClaimSet abstract : System::Collections::Generic::IEnumerable<System::IdentityModel::Claims::Claim ^>
public abstract class ClaimSet : System.Collections.Generic.IEnumerable<System.IdentityModel.Claims.Claim>
type ClaimSet = class
interface seq<Claim>
interface IEnumerable
Public MustInherit Class ClaimSet
Implements IEnumerable(Of Claim)
- Inheritance
-
ClaimSet
- Derived
- Attributes
- Implements
Remarks
After the ClaimSet class has been created, it cannot be changed.
Examining the content of a ClaimSet for particular types of claims is a common task when using claim-based authorization. To examine a ClaimSet for the presence of particular claims, use the FindClaims method. The method provides better performance than iterating directly over the ClaimSet.
Constructors
| Name | Description |
|---|---|
| ClaimSet() |
Initializes a new instance of the ClaimSet class. |
Properties
| Name | Description |
|---|---|
| Count |
When overridden in a derived class, gets the number of claims in this claim set. |
| Issuer |
When overridden in a derived class, gets the entity that issued this ClaimSet. |
| Item[Int32] |
When overridden in a derived class, gets the Claim for the specified index. |
| System |
Gets a ClaimSet object that represents an application trusted issuer. |
| Windows |
Gets a set of claims that contains Windows security identifiers. |
Methods
| Name | Description |
|---|---|
| ContainsClaim(Claim, IEqualityComparer<Claim>) |
Determines whether the ClaimSet contains the specified Claim, by using the specified IEqualityComparer<T> object. |
| ContainsClaim(Claim) |
Determines whether the ClaimSet contains the specified Claim. |
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| FindClaims(String, String) |
When overridden in a derived class, searches for a Claim object that matches the specified claim type and rights in the ClaimSet. |
| GetEnumerator() |
When overridden in a derived class, gets a IEnumerator<T> that can be used to enumerate the Claim object in the ClaimSet. |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IEnumerable.GetEnumerator() |
Gets an IEnumerator<T> that can be used to enumerate the Claim object in the ClaimSet. |