ConditionalWeakTable<TKey,TValue>.IEnumerable<KeyValuePair<TKey,TValue>>.GetEnumerator 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個列舉子,可用於遍歷表格。ConditionalWeakTable<TKey,TValue>
virtual System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator() = System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<TKey, TValue>>::GetEnumerator;
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey,TValue>> IEnumerable<KeyValuePair<TKey,TValue>>.GetEnumerator();
abstract member System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<'Key, 'Value>>
override this.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<'Key, 'Value>>
Function GetEnumerator () As IEnumerator(Of KeyValuePair(Of TKey, TValue)) Implements IEnumerable(Of KeyValuePair(Of TKey, TValue)).GetEnumerator
傳回
IEnumerator<KeyValuePair<TKey,TValue>>
一個可以用來遍歷表格的 ConditionalWeakTable<TKey,TValue> 列舉器。
實作
備註
回傳的列舉器不會延長表格中除當前物件對外的任何物件對的壽命。 它不會回傳已經收集或在檢索器檢索後新增的條目。 此外,它可能無法回傳檢索器檢索時所有存在的條目,例如在檢索器檢索後但在列舉之前被收集或移除的條目。