A static class for holding various user globalization preferences.
Syntax
var globalizationPreferences = Windows.System.UserProfile.GlobalizationPreferences;
Attributes
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.System.UserProfile.IGlobalizationPreferencesStatics, NTDDI_WIN8)
- VersionAttribute(NTDDI_WIN8)
Members
The GlobalizationPreferences class has these types of members:
Methods
The GlobalizationPreferences class inherits methods from the Object class (C#/VB/C++).
Properties
The GlobalizationPreferences class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets the set of calendars that are preferred by the user, in order of preference. | |
| Read-only | Gets the set of clocks that are preferred by the user, in order of preference. | |
| Read-only | Gets the set of currencies that are preferred by the user, in order of preference. | |
| Read-only | Gets the user's home geographic region. | |
| Read-only | Gets the set of languages that are preferred by the user, in order of preference. | |
| Read-only | Gets the day of the week that is considered to be the first day of the week. |
Examples
// Obtain the user's home geographic region. var globalizationPreferences = Windows.System.UserProfile.GlobalizationPreferences; var region = globalizationPreferences.homeGeographicRegion;
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps, desktop apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps, desktop apps] |
|
Namespace |
|
|
Metadata |
|
Build date: 12/4/2012