ClaimSet.IEnumerable.GetEnumerator ClaimSet.IEnumerable.GetEnumerator ClaimSet.IEnumerable.GetEnumerator Method

定義

取得可用來列舉在 IEnumerator<T>Claim 物件的 ClaimSetGets an IEnumerator<T> that can be used to enumerate the Claim object in the ClaimSet.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

傳回

可用來列舉在 IEnumerator<T> 中之 Claim 物件的 ClaimSetA IEnumerator<T> that can be used to enumerate the Claim object in the ClaimSet.

實作

備註

C# 語言的 foreach 陳述式 (在 Visual Basic 中為 for each) 會隱藏列舉值的複雜度。The foreach statement of the C# language (for each in Visual Basic) hides the complexity of the enumerators. 因此,建議您使用 foreach,而不要直接使用列舉值。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.

適用於