Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
GlobalizationPreferences Class
Definition
- Namespace:
- Windows.System.UserProfile
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A static class for holding various user globalization preferences.
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
- Inheritance
- Attributes
Windows requirements
| Requirements | Description |
|---|---|
| Device family |
Windows 10 (introduced in 10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Examples
// Obtain the user's home geographic region.
var region = Windows.System.UserProfile.GlobalizationPreferences.HomeGeographicRegion;
Remarks
Version history
| Windows version | SDK version | Value added |
|---|---|---|
| 1709 | 16299 | TrySetHomeGeographicRegion |
| 1709 | 16299 | TrySetLanguages |
| 1803 | 17134 | GetForUser |
Properties
| Name | Description |
|---|---|
| Calendars |
Gets the set of calendars that are preferred by the user, in order of preference. |
| Clocks |
Gets the set of clocks that are preferred by the user, in order of preference. |
| Currencies |
Gets the set of currencies that are preferred by the user, in order of preference. |
| HomeGeographicRegion |
Gets the user's home geographic region. |
| Languages |
Gets the set of languages that are preferred by the user, in order of preference. |
| WeekStartsOn |
Gets the day of the week that is considered to be the first day of the week. |
Methods
| Name | Description |
|---|---|
| GetForUser(User) |
Retrieves an object representing the globalization preferences of the specified user. This API is part of support for multi-user apps (MUA). |
| TrySetHomeGeographicRegion(String) |
Attempts to set the user's home geographic region on an IoT device. Note This method is available only in Embedded mode. |
| TrySetLanguages(IIterable<String>) |
Attempts to set the preferred languages on an IoT device. Note This method is available only in Embedded mode. |
Applies to
See also
Feedback
Was this page helpful?
