GlobalizationPreferences GlobalizationPreferences GlobalizationPreferences GlobalizationPreferences Class

A static class for holding various user globalization preferences.

Syntax

Declaration

public static class GlobalizationPreferencespublic static class GlobalizationPreferencesPublic Static Class GlobalizationPreferencespublic static class GlobalizationPreferences

Remarks

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 summary

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

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

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

Gets the user's home geographic region.

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

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

Properties

  • Calendars
    Calendars
    Calendars
    Calendars

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

    public static IVectorView<string> Calendars { get; }public static IVectorView<string> Calendars { get; }Public Static ReadOnly Property Calendars As IVectorView<string>public static IVectorView<string> Calendars { get; }

    Property Value

    • One or more calendar identifiers for the user's preferred calendars.

  • Clocks
    Clocks
    Clocks
    Clocks

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

    public static IVectorView<string> Clocks { get; }public static IVectorView<string> Clocks { get; }Public Static ReadOnly Property Clocks As IVectorView<string>public static IVectorView<string> Clocks { get; }

    Property Value

    • One or more clock identifiers for the user's preferred clocks.

  • Currencies
    Currencies
    Currencies
    Currencies

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

    public static IVectorView<string> Currencies { get; }public static IVectorView<string> Currencies { get; }Public Static ReadOnly Property Currencies As IVectorView<string>public static IVectorView<string> Currencies { get; }

    Property Value

    • One or more currency identifiers for the user's preferred currencies.

  • HomeGeographicRegion
    HomeGeographicRegion
    HomeGeographicRegion
    HomeGeographicRegion

    Gets the user's home geographic region.

    public static string HomeGeographicRegion { get; }public static string HomeGeographicRegion { get; }Public Static ReadOnly Property HomeGeographicRegion As stringpublic static string HomeGeographicRegion { get; }

    Property Value

    • string
      string
      string
      string

      The GeographicRegion identifier that represents the user's home location.

  • Languages
    Languages
    Languages
    Languages

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

    public static IVectorView<string> Languages { get; }public static IVectorView<string> Languages { get; }Public Static ReadOnly Property Languages As IVectorView<string>public static IVectorView<string> Languages { get; }

    Property Value

    • One or more language identifiers for the user's preferred languages.

  • WeekStartsOn
    WeekStartsOn
    WeekStartsOn
    WeekStartsOn

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

    public static DayOfWeek WeekStartsOn { get; }public static DayOfWeek WeekStartsOn { get; }Public Static ReadOnly Property WeekStartsOn As DayOfWeekpublic static DayOfWeek WeekStartsOn { get; }

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute

Details

Assembly

Windows.System.UserProfile.dll