Aracılığıyla paylaş


GeographicRegion.Code Property

Definition

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

public:
 property Platform::String ^ Code { Platform::String ^ get(); };
winrt::hstring Code();
public string Code { get; }
var string = geographicRegion.code;
Public ReadOnly Property Code As String

Property Value

String

Platform::String

winrt::hstring

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".

For a list of standard country/region codes used by Microsoft, see the Official Country/Region List.

Applies to