ResXResourceReader.IEnumerable.GetEnumerator 方法


傳回目前 ResXResourceReader 物件的列舉程式。Returns an enumerator for the current ResXResourceReader object. 如需這個成員的描述,請參閱 GetEnumerator() 方法。For a description of this member, see the GetEnumerator() method.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator


列舉程式,其可逐一查看與目前 ResXResourceReader 物件相關聯之 XML 資源 (.resx) 資料流或字串中的名稱/值組。An enumerator that can iterate through the name/value pairs in the XML resource (.resx) stream or string associated with the current ResXResourceReader object.



這個成員是明確的介面成員實作。This member is an explicit interface member implementation. 只有在 ResXResourceReader 執行個體轉換成 IEnumerable 介面時,才能使用這個成員。It can be used only when the ResXResourceReader instance is cast to an IEnumerable interface. 若要列舉 .resx 檔案中的資源,我們建議您呼叫 ResXResourceReader.GetEnumerator 方法,然後在傳回的 IDictionaryEnumerator 物件上呼叫 MoveNext 方法。To enumerate the resources in a .resx file, we recommend that you call the ResXResourceReader.GetEnumerator method, and then call the MoveNext method on the returned IDictionaryEnumerator object.