ClaimSet.GetEnumerator Method
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.
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.