편집

다음을 통해 공유


ClaimSet.GetEnumerator Method

Definition

When overridden in a derived class, gets a IEnumerator<T> that can be used to enumerate the Claim object in the ClaimSet.

public:
 abstract System::Collections::Generic::IEnumerator<System::IdentityModel::Claims::Claim ^> ^ GetEnumerator();
public abstract System.Collections.Generic.IEnumerator<System.IdentityModel.Claims.Claim> GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.IdentityModel.Claims.Claim>
Public MustOverride Function GetEnumerator () As IEnumerator(Of Claim)

Returns

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

Implements

Remarks

The foreach statement of the C# language (for each in Visual Basic) hides the complexity of the enumerators. Therefore, using foreach is recommended, instead of directly manipulating the enumerator.

Enumerators can be used to read the data in the collection, but they cannot be used to modify the underlying collection.

Applies to