GeographicRegion.IsSupported | isSupported method

Applies to Windows and Windows Phone

Determines whether a geographic region identifier is supported.

Syntax


Public Shared Function IsSupported(
  geographicRegionCode As String 
) As Boolean

Parameters

geographicRegionCode

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

One of the ISO 3166-1 two-letter or three-letter codes that identify the country, or one of the three-digit UN-M49 codes that identify the geographical region.

Return value

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

True if the ID is known; otherwise, false. If this method returns true, an app can safely construct a region by using this region identifier. If it returns false, attempting to construct a region for the given code will throw an exception.

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