GlobalizationPreferences GlobalizationPreferences GlobalizationPreferences GlobalizationPreferences GlobalizationPreferences Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
A static class for holding various user globalization preferences.

public : static class GlobalizationPreferences
static struct winrt::Windows::System::UserProfile::GlobalizationPreferences
public static class GlobalizationPreferences
Public Static Class GlobalizationPreferences
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples

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

Properties

Calendars Calendars Calendars Calendars Calendars

Gets the set of calendars that are preferred by the user, in order of preference.

Clocks Clocks Clocks Clocks Clocks

Gets the set of clocks that are preferred by the user, in order of preference.

Currencies Currencies Currencies Currencies Currencies

Gets the set of currencies that are preferred by the user, in order of preference.

HomeGeographicRegion HomeGeographicRegion HomeGeographicRegion HomeGeographicRegion HomeGeographicRegion

Gets the user's home geographic region.

Languages Languages Languages Languages Languages

Gets the set of languages that are preferred by the user, in order of preference.

WeekStartsOn WeekStartsOn WeekStartsOn WeekStartsOn WeekStartsOn

Gets the day of the week that is considered to be the first day of the week.

Methods

GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User)

Prerelease. Retrieves an object representing the globalization preferences of the specified user. This API is part of support for multi-user apps (MUA).

TrySetHomeGeographicRegion(String) TrySetHomeGeographicRegion(String) TrySetHomeGeographicRegion(String) TrySetHomeGeographicRegion(String) 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>) TrySetLanguages(IIterable<String>) TrySetLanguages(IIterable<String>) TrySetLanguages(IIterable<String>) TrySetLanguages(IIterable<String>)

Attempts to set the preferred languages on an IoT device.

Note

This method is available only in Embedded mode.

See Also