GlobalizationPreferences Class

Definition

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
Object Platform::Object IInspectable GlobalizationPreferences
Attributes

Windows requirements

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

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

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