Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GlobalizationPreferences class

Applies to Windows and Windows Phone

A static class for holding various user globalization preferences.

Syntax


var globalizationPreferences = Windows.System.UserProfile.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 globalizationPreferences = Windows.System.UserProfile.GlobalizationPreferences;
var region = 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