GlobalizationPreferences クラス

定義

さまざまなユーザーグローバリゼーション設定を保持するための静的クラス。

public ref class GlobalizationPreferences abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GlobalizationPreferences final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class GlobalizationPreferences
Public Class GlobalizationPreferences
継承
Object Platform::Object IInspectable GlobalizationPreferences
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

// Obtain the user's home geographic region.
var region = Windows.System.UserProfile.GlobalizationPreferences.HomeGeographicRegion;

注釈

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1709 16299 TrySetHomeGeographicRegion
1709 16299 TrySetLanguages
1803 17134 GetForUser

プロパティ

Calendars

ユーザーが優先する予定表のセットを優先順に取得します。

Clocks

ユーザーが優先するクロックのセットを優先順に取得します。

Currencies

ユーザーが優先する通貨のセットを優先順に取得します。

HomeGeographicRegion

ユーザーのホーム地理的リージョンを取得します。

Languages

ユーザーが優先する一連の言語を優先順に取得します。

WeekStartsOn

週の最初の日と見なされる曜日を取得します。

メソッド

GetForUser(User)

指定したユーザーのグローバリゼーション設定を表す オブジェクトを取得します。 この API は、マルチユーザー アプリ (MUA) のサポートの一部です。

TrySetHomeGeographicRegion(String)

IoT デバイスでユーザーのホーム地理的リージョンの設定を試みます。

注意

このメソッドは 、埋め込みモードでのみ使用できます。

TrySetLanguages(IIterable<String>)

IoT デバイスで優先言語の設定を試みます。

注意

このメソッドは 、埋め込みモードでのみ使用できます。

適用対象

こちらもご覧ください