翻訳への提案を行います
 
他のユーザーによる提案:

progress indicator
他の提案はありません。
クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
.NET 開発
.NET Framework 4
.NET Framework の基本開発
CultureInfo クラスの使用
 CurrentUICulture プロパティの使用
すべて縮小/すべて展開 すべて縮小
コンテンツの表示:   英語と日本語を並べて表示コンテンツの表示: 英語と日本語を並べて表示
.NET Framework 4
Using the CurrentUICulture Property

The CurrentUICulture property represents current user interface culture on a per-thread basis. This property is used by the ResourceManager class to look up culture-specific resources at run time. Your application can use a neutral or specific culture, or the InvariantCulture to set the CurrentUICulture property. The application can use the CurrentThread property to set CurrentCulture.

Your application can set the CurrentUICulture property explicitly. The following code example sets the property to the neutral culture German ("de").

Visual Basic
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de")
C#
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");

The application can also explicitly set CurrentUICulture to a specific culture. The following code example sets the property to the specific culture German (Germany), designated "de-DE".

Visual Basic
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE")
C#
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE");

If the CurrentUICulture property is not set explicitly in application code, it is set by default when the application starts. This setting uses the GetUserDefaultUILanguage function on Windows 2000 and Windows XP Multilingual User Interface (MUI) products for which the user can set the UI language through the regional and language options in Control Panel. If the user does not set the UI language, the system-installed language, which is the language of the operating system resources, sets it.

.NET Framework 4
CurrentUICulture プロパティの使用

CurrentUICulture プロパティは、スレッド単位で現在のユーザー インターフェイス カルチャを表します。 このプロパティは、実行時にカルチャ固有のリソースを検索するために ResourceManager クラスによって使用されます。 アプリケーションでは、ニュートラル カルチャ、特定のカルチャ、または InvariantCulture を使用して CurrentUICulture プロパティを設定できます。 アプリケーションで CurrentCulture を設定するには、CurrentThread プロパティを使用します。

アプリケーションで CurrentUICulture プロパティを明示的に設定できます。 このプロパティをドイツ語のニュートラル カルチャ ("de") に設定するコード例を次に示します。

Visual Basic
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de")
C#
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");

アプリケーションでは CurrentUICulture を明示的に特定のカルチャに設定することもできます。 このプロパティをドイツ語 (ドイツ) の特定のカルチャ "de-DE" に設定するコード例を次に示します。

Visual Basic
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE")
C#
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE");

アプリケーション コードで CurrentUICulture プロパティが明示的に設定されていない場合、このプロパティは既定でアプリケーションの起動時に設定されます。 ユーザーがコントロール パネルの [地域と言語のオプション] で UI 言語を設定できる MUI (Multilingual User Interface) 製品がインストールされている Windows 2000 および Windows XP では、この設定に GetUserDefaultUILanguage 関数が使用されます。 ユーザーが UI 言語を設定していない場合は、システム インストール言語、つまりオペレーティング システム リソースの言語によって UI 言語が設定されます。

コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2012 Microsoft. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker