PhoneNumberUtils.FormatNumberToE164(String, 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.
Formats the specified phoneNumber
to the E.
[Android.Runtime.Register("formatNumberToE164", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? FormatNumberToE164 (string? phoneNumber, string? defaultCountryIso);
[<Android.Runtime.Register("formatNumberToE164", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")>]
static member FormatNumberToE164 : string * string -> string
Parameters
- phoneNumber
- String
the phone number to format.
- defaultCountryIso
- String
the ISO 3166-1 two letters country code in UPPER CASE.
Returns
the E.164 representation, or null if the given phone number is not valid.
- Attributes
Remarks
Formats the specified phoneNumber
to the E.164 representation.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.