PhoneNumberFormatter.GetCountryCodeForRegion(String) Method
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.
Static method that returns the country code for a given region code.
public:
static int GetCountryCodeForRegion(Platform::String ^ regionCode);
static int GetCountryCodeForRegion(winrt::hstring const& regionCode);
public static int GetCountryCodeForRegion(string regionCode);
function getCountryCodeForRegion(regionCode)
Public Shared Function GetCountryCodeForRegion (regionCode As String) As Integer
Parameters
- regionCode
-
String
Platform::String
winrt::hstring
The two-letter ISO region code.
Returns
Int32
int
The telephone country code, as an integer.