Jaa


PhoneNumberFormatter.GetCountryCodeForRegion(String) Method

Definition

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.

Applies to