ResourceReader.GetEnumerator メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As ResourceReader Dim returnValue As IDictionaryEnumerator returnValue = instance.GetEnumerator
public IDictionaryEnumerator GetEnumerator ()
public: virtual IDictionaryEnumerator^ GetEnumerator () sealed
public final IDictionaryEnumerator GetEnumerator ()
public final function GetEnumerator () : IDictionaryEnumerator
この ResourceReader の IDictionaryEnumerator。


Imports System Imports System.Resources Imports System.Collections Imports Microsoft.VisualBasic Class EnumerateResources Public Shared Sub Main() ' Create a ResourceReader for the file items.resources. Dim rr As New ResourceReader("items.resources") ' Create an IDictionaryEnumerator to iterate through the resources. Dim id As IDictionaryEnumerator = rr.GetEnumerator() ' Iterate through the resources and display the contents to the console. While id.MoveNext() Console.WriteLine(ControlChars.NewLine + "[{0}] " + ControlChars.Tab + "{1}", id.Key, id.Value) End While rr.Close() End Sub End Class
using System; using System.Resources; using System.Collections; class EnumerateResources { public static void Main() { // Create a ResourceReader for the file items.resources. ResourceReader rr = new ResourceReader("items.resources"); // Create an IDictionaryEnumerator to iterate through the resources. IDictionaryEnumerator id = rr.GetEnumerator(); // Iterate through the resources and display the contents to the console. while(id.MoveNext()) Console.WriteLine("\n[{0}] \t{1}", id.Key, id.Value); rr.Close(); } }
using namespace System; using namespace System::Resources; using namespace System::Collections; int main() { // Create a ResourceReader for the file items.resources. ResourceReader^ rr = gcnew ResourceReader( "items.resources" ); // Create an IDictionaryEnumerator* to iterate through the resources. IDictionaryEnumerator^ id = rr->GetEnumerator(); // Iterate through the resources and display the contents to the console. while ( id->MoveNext() ) Console::WriteLine( "\n [{0}] \t {1}", id->Key, id->Value ); rr->Close(); }
import System.*; import System.Resources.*; import System.Collections.*; class EnumerateResources { public static void main(String[] args) { // Create a ResourceReader for the file items.resources. ResourceReader rr = new ResourceReader("items.resources"); // Create an IDictionaryEnumerator to iterate through the resources. IDictionaryEnumerator id = rr.GetEnumerator(); // Iterate through the resources and display the // contents to the console. while (id.MoveNext()) { Console.WriteLine("\n[{0}] \t{1}", id.get_Key(), id.get_Value()); } rr.Close(); } //main } //EnumerateResources

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からResourceReader.GetEnumerator メソッドを検索する場合は、下記のリンクをクリックしてください。

- ResourceReader.GetEnumerator メソッドのページへのリンク