IResourceReader.GetEnumerator 方法

定義

傳回這個讀取器資源的字典列舉程式。Returns a dictionary enumerator of the resources for this reader.

public:
 System::Collections::IDictionaryEnumerator ^ GetEnumerator();
public System.Collections.IDictionaryEnumerator GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.IDictionaryEnumerator
Public Function GetEnumerator () As IDictionaryEnumerator

傳回

這個讀取器資源的字典列舉值。A dictionary enumerator for the resources for this reader.

備註

因為 IResourceReader 會繼承 IEnumerable 介面,所以它也必須提供 IEnumerable.GetEnumerator 方法的實作為,以傳回可用來列舉集合的 IEnumerator 物件。Because IResourceReader inherits the IEnumerable interface, it must also provide an implementation of the IEnumerable.GetEnumerator method, which returns an IEnumerator object that can be used to enumerate a collection. 一般來說,IEnumerable.GetEnumerator 會實作為明確介面的執行。Typically, IEnumerable.GetEnumerator is implemented as an explicit interface implementation.

適用於

另請參閱