Edit

Share via


DefaultClaimSet Class

Definition

Provides a default implementation of the ClaimSet class.

public ref class DefaultClaimSet : System::IdentityModel::Claims::ClaimSet
public class DefaultClaimSet : System.IdentityModel.Claims.ClaimSet
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.xmlsoap.org/ws/2005/05/identity")]
public class DefaultClaimSet : System.IdentityModel.Claims.ClaimSet
type DefaultClaimSet = class
    inherit ClaimSet
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.xmlsoap.org/ws/2005/05/identity")>]
type DefaultClaimSet = class
    inherit ClaimSet
Public Class DefaultClaimSet
Inherits ClaimSet
Inheritance
DefaultClaimSet
Attributes

Remarks

This is a concrete implementation of the ClaimSet abstract base class. Implementations of IAuthorizationPolicy can use an instance of this class to add a ClaimSet to an EvaluationContext.

Constructors

DefaultClaimSet(Claim[])

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

DefaultClaimSet(ClaimSet, Claim[])

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

DefaultClaimSet(ClaimSet, IList<Claim>)

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

DefaultClaimSet(IList<Claim>)

Initializes a new instance of the DefaultClaimSet class, using the specified claims.

Properties

Count

Gets the number of Claim objects in this claim set.

Issuer

Gets the ClaimSet object that issued this claim set.

Item[Int32]

Gets the Claim for the specified index.

Methods

ContainsClaim(Claim, IEqualityComparer<Claim>)

Determines whether the ClaimSet contains the specified Claim, by using the specified IEqualityComparer<T> object.

(Inherited from ClaimSet)
ContainsClaim(Claim)

Determines whether the specified claim is contained within this claim set.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindClaims(String, String)

Searches for the Claim object that matches the specified claim type and rights in the DefaultClaimSet.

GetEnumerator()

Gets an IEnumerator<T> that can be used to enumerate the Claim object in the DefaultClaimSet.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize(ClaimSet, IList<Claim>)

Initializes an instance of the DefaultClaimSet class, using the specified claims.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns this ClaimSet object.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets an IEnumerator<T> that can be used to enumerate the Claim object in the ClaimSet.

(Inherited from ClaimSet)

Extension Methods

ToFrozenDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

Creates a FrozenDictionary<TKey,TValue> from an IEnumerable<T> according to specified key selector function.

ToFrozenDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

Creates a FrozenDictionary<TKey,TValue> from an IEnumerable<T> according to specified key selector and element selector functions.

ToFrozenSet<T>(IEnumerable<T>, IEqualityComparer<T>)

Creates a FrozenSet<T> with the specified values.

ToImmutableArray<TSource>(IEnumerable<TSource>)

Creates an immutable array from the specified collection.

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

Constructs an immutable dictionary based on some transformation of a sequence.

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>, IEqualityComparer<TValue>)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer.

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

Enumerates and transforms a sequence, and produces an immutable dictionary of its contents.

ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Enumerates a sequence and produces an immutable hash set of its contents.

ToImmutableList<TSource>(IEnumerable<TSource>)

Enumerates a sequence and produces an immutable list of its contents.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>, IEqualityComparer<TValue>)

Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>)

Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer.

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>)

Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

Enumerates a sequence and produces an immutable sorted set of its contents.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

ToAsyncEnumerable<TSource>(IEnumerable<TSource>)

Creates a new IAsyncEnumerable<T> that iterates through source.

Applies to