GeographicRegion.CodeTwoLetter | codeTwoLetter property

Applies to Windows and Windows Phone

Gets the two-letter identifier for this region.

Syntax


var codeTwoLetter = geographicRegion.codeTwoLetter;

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

Returns the two-letter ISO 3166-1 alpha-2 code for this region, if one exists; otherwise, returns "ZZ".

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization
Windows::Globalization [C++]

Metadata

Windows.winmd

See also

GeographicRegion

 

 

Show:
© 2014 Microsoft