GeographicRegion.Code | code property

Applies to Windows and Windows Phone

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

Syntax


public:
property String^ Code { 
   String^ get();
}

Property value

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

Returns a string that contains:

  • The two-letter identifier code, if one exists (and is not "ZZ");
  • otherwise, the three-letter identifier code, if one exists (and is not "ZZZ");
  • otherwise, the three-digit numeric identifier code, if one exists (and is not "999");
  • otherwise, "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