GeographicRegion GeographicRegion GeographicRegion GeographicRegion GeographicRegion Class

Definition

Describes a region. This is usually a country, but may be a macroregion.

public : sealed class GeographicRegion : IGeographicRegion
struct winrt::Windows::Globalization::GeographicRegion : IGeographicRegion
public sealed class GeographicRegion : IGeographicRegion
Public NotInheritable Class GeographicRegion Implements IGeographicRegion
var geographicRegion = new geographicRegion();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples

// Get the user's geographic region and its display name.
var geographicRegion = new Windows.Globalization.GeographicRegion;
var displayName = geographicRegion.displayName;
// Get the user's geographic region and its display name.
var geographicRegion = new Windows.Globalization.GeographicRegion();
var displayName = geographicRegion.DisplayName;

Constructors

GeographicRegion() GeographicRegion() GeographicRegion() GeographicRegion() GeographicRegion()

Creates a GeographicRegion object that defaults to the user's home region.

GeographicRegion(String) GeographicRegion(String) GeographicRegion(String) GeographicRegion(String) GeographicRegion(String)

Creates a GeographicRegion object.

Properties

Code Code Code Code Code

Gets the string that contains the best available identifier that represents the region.

CodeThreeDigit CodeThreeDigit CodeThreeDigit CodeThreeDigit CodeThreeDigit

Gets the three-digit identifier for this region, as a string.

CodeThreeLetter CodeThreeLetter CodeThreeLetter CodeThreeLetter CodeThreeLetter

Gets the three-letter identifier for this region.

CodeTwoLetter CodeTwoLetter CodeTwoLetter CodeTwoLetter CodeTwoLetter

Gets the two-letter identifier for this region.

CurrenciesInUse CurrenciesInUse CurrenciesInUse CurrenciesInUse CurrenciesInUse

Gets the set of currencies in use in this region.

DisplayName DisplayName DisplayName DisplayName DisplayName

Gets a localized string that is suitable for display to the user for identifying the region.

NativeName NativeName NativeName NativeName NativeName

Gets the name of the region in the primary language spoken in this region.

Methods

IsSupported(String) IsSupported(String) IsSupported(String) IsSupported(String) IsSupported(String)

Determines whether a geographic region identifier is supported.

See Also