Windows Dev Center

GlobalizationPreferences Class

Eine statische Klasse zum Speichern verschiedener Benutzerglobalisierungseinstellungen.

Syntax


var globalizationPreferences = Windows.System.UserProfile.GlobalizationPreferences;

Attribute

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Member

GlobalizationPreferencesKlasse hat diese Membertypen:

Methoden

The GlobalizationPreferences Klasse erbt Methoden von Object Klasse (C#/VB/C++).

Eigenschaften

Der GlobalizationPreferencesKlasse hat diese Eigenschaften.

EigenschaftZugriffstypBeschreibung

Calendars

SchreibgeschütztGets the set of calendars that are preferred by the user, in order of preference.

Clocks

SchreibgeschütztGets the set of clocks that are preferred by the user, in order of preference.

Currencies

SchreibgeschütztGets the set of currencies that are preferred by the user, in order of preference.

HomeGeographicRegion

SchreibgeschütztGets the user's home geographic region.

Languages

SchreibgeschütztGets the set of languages that are preferred by the user, in order of preference.

WeekStartsOn

SchreibgeschütztGets the day of the week that is considered to be the first day of the week.

 

Beispiele


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

Anforderungen

Mindestens unterstützter Client

Windows 8 [Windows Store-Apps, Desktop-Apps]

Mindestens unterstützter Server

Windows Server 2012 [Windows Store-Apps, Desktop-Apps]

Namespace

Windows.System.UserProfile
Windows::System::UserProfile [C++]

Metadaten

Windows.winmd

 

 

Anzeigen:
© 2015 Microsoft