GlobalizationPreferences class

Applies to Windows and Windows Phone

A static class for holding various user globalization preferences.

Syntax


public static class GlobalizationPreferences

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

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.

PropertyAccess typeDescription

Calendars

Read-onlyGets the set of calendars that are preferred by the user, in order of preference.

Clocks

Read-onlyGets the set of clocks that are preferred by the user, in order of preference.

Currencies

Read-onlyGets the set of currencies that are preferred by the user, in order of preference.

HomeGeographicRegion

Read-onlyGets the user's home geographic region.

Languages

Read-onlyGets the set of languages that are preferred by the user, in order of preference.

WeekStartsOn

Read-onlyGets 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 region = Windows.System.UserProfile.GlobalizationPreferences.HomeGeographicRegion;

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.System.UserProfile
Windows::System::UserProfile [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft