ResourceSet.Close メソッド
アセンブリ: mscorlib (mscorlib.dll 内)
構文
解説
使用例Imports System Imports System.Resources Imports System.Collections Imports Microsoft.VisualBasic Class EnumerateResources Public Shared Sub Main() ' Create a ResourceSet for the file items.resources. Dim rs As New ResourceSet("items.resources") ' Create an IDictionaryEnumerator to read the data in the ResourceSet. Dim id As IDictionaryEnumerator = rs.GetEnumerator() ' Iterate through the ResourceSet and display the contents to the console. While id.MoveNext() Console.WriteLine(ControlChars.NewLine + "[{0}] " + ControlChars.Tab + "{1}", id.Key, id.Value) End While rs.Close() End Sub End Class
using System; using System.Resources; using System.Collections; class EnumerateResources { public static void Main() { // Create a ResourceSet for the file items.resources. ResourceSet rs = new ResourceSet("items.resources"); // Create an IDictionaryEnumerator to read the data in the ResourceSet. IDictionaryEnumerator id = rs.GetEnumerator(); // Iterate through the ResourceSet and display the contents to the console. while(id.MoveNext()) Console.WriteLine("\n[{0}] \t{1}", id.Key, id.Value); rs.Close(); } }
using namespace System; using namespace System::Resources; using namespace System::Collections; int main() { // Create a ResourceSet for the file items.resources. ResourceSet^ rs = gcnew ResourceSet( "items.resources" ); // Create an IDictionaryEnumerator* to read the data in the ResourceSet. IDictionaryEnumerator^ id = rs->GetEnumerator(); // Iterate through the ResourceSet and display the contents to the console. while ( id->MoveNext() ) Console::WriteLine( "\n [{0}] \t {1}", id->Key, id->Value ); rs->Close(); }
import System.*; import System.Resources.*; import System.Collections.*; class EnumerateResources { public static void main(String[] args) { // Create a ResourceSet for the file items.resources. ResourceSet rs = new ResourceSet("items.resources"); // Create an IDictionaryEnumerator to read the data in the ResourceSet. IDictionaryEnumerator id = rs.GetEnumerator(); // Iterate through the ResourceSet and display the contents to // the console. while (id.MoveNext()) { Console.WriteLine("\n[{0}] \t{1}", id.get_Key(), id.get_Value()); } rs.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に収録されているすべての辞書からResourceSet.Close メソッドを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からResourceSet.Close メソッド
を検索
- ResourceSet.Close メソッドのページへのリンク
.gif)