ClaimCollection Members

[Starting with the .NET Framework 4.5, Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework. The version of WIF addressed by this topic, WIF 3.5, is deprecated and should only be used when developing against the .NET Framework 3.5 SP1 or the .NET Framework 4. For more information about WIF in the .NET Framework 4.5, also known as WIF 4.5, see the Windows Identity Foundation documentation in the .NET Framework 4.5 Development Guide.]

Represents a collection of claims.

The following tables list the members exposed by the ClaimCollection type.

Public Constructors

  Name Description
  ClaimCollection Initializes a new instance of the ClaimCollection class associated with the specified subject.

Top

Public Properties

  Name Description
public property Count Gets the number of Claim objects in the collection.
public property IsReadOnly Gets a value that indicates whether the collection is read-only.
public property Item Gets or sets the element at the specified index of the collection.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Add Adds a Claim to this collection, detaching it from its current collection.
public method AddRange Adds a set of claims to the collection.
public method Clear Removes all claims from this collection.
public method Contains Returns a value that indicates whether the specified claim is in the collection.
public method CopyRange Adds a set of Claim objects to the collection without modifying the source objects.
public method CopyTo Copies the elements of the collection to the specified array starting at the specified index in the array.
public method CopyWithSubject Returns a new ClaimCollection copied from this instance. The new collection is associated with the specified subject.
public method Equals  (Inherited from Object)
public method Exists Returns a value that indicates whether the ClaimCollection contains elements that match the conditions defined by the specified predicate.
public method FindAll Returns a collection of claims that match the conditions defined by the specified predicate.
public method GetEnumerator Gets an enumerator for the ClaimCollection.
public method GetHashCode  (Inherited from Object)
public method GetType  (Inherited from Object)
public method IndexOf Returns the index of the specified claim in the ClaimCollection.
public method Insert Inserts a claim in the ClaimCollection at the specified index.
public method Remove Removes a claim from the ClaimCollection.
public method RemoveAt Removes a claim from the ClaimCollection at the specified index.
public method ToString  (Inherited from Object)

Top

Protected Methods

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Top

See Also

Reference

ClaimCollection Class
Microsoft.IdentityModel.Claims Namespace

Copyright © 2008 by Microsoft Corporation. All rights reserved.