GeographicRegion.Code Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.