Condividi tramite


PhoneNumberFormatter.Format Metodo

Definizione

Overload

Format(PhoneNumberInfo)

Restituisce una rappresentazione stringa del numero di telefono specificato.

Format(PhoneNumberInfo, PhoneNumberFormat)

Restituisce una stringa che rappresenta il numero di telefono specificato usando il formato specificato.

Format(PhoneNumberInfo)

Restituisce una rappresentazione stringa del numero di telefono specificato.

public:
 virtual Platform::String ^ Format(PhoneNumberInfo ^ number) = Format;
/// [Windows.Foundation.Metadata.Overload("Format")]
winrt::hstring Format(PhoneNumberInfo const& number);
[Windows.Foundation.Metadata.Overload("Format")]
public string Format(PhoneNumberInfo number);
function format(number)
Public Function Format (number As PhoneNumberInfo) As String

Parametri

number
PhoneNumberInfo

Numero di telefono da formattare. PhoneNumberInfo specifica non solo il numero del sottoscrittore, ma anche altre informazioni rilevanti, ad esempio il codice paese.

Restituisce

String

Platform::String

winrt::hstring

Stringa contenente il numero di telefono formattato, usando il formato predefinito per l'area specificata quando è stato creato phoneNumberFormatter.

Attributi

Vedi anche

Si applica a

Format(PhoneNumberInfo, PhoneNumberFormat)

Restituisce una stringa che rappresenta il numero di telefono specificato usando il formato specificato.

public:
 virtual Platform::String ^ Format(PhoneNumberInfo ^ number, PhoneNumberFormat numberFormat) = Format;
/// [Windows.Foundation.Metadata.Overload("FormatWithOutputFormat")]
winrt::hstring Format(PhoneNumberInfo const& number, PhoneNumberFormat const& numberFormat);
[Windows.Foundation.Metadata.Overload("FormatWithOutputFormat")]
public string Format(PhoneNumberInfo number, PhoneNumberFormat numberFormat);
function format(number, numberFormat)
Public Function Format (number As PhoneNumberInfo, numberFormat As PhoneNumberFormat) As String

Parametri

number
PhoneNumberInfo

Numero di telefono da formattare. PhoneNumberInfo specifica non solo il numero del sottoscrittore, ma anche altre informazioni rilevanti, ad esempio il codice paese.

numberFormat
PhoneNumberFormat

Formato specifico da usare.

Restituisce

String

Platform::String

winrt::hstring

Stringa contenente il numero di telefono, nel formato specificato.

Attributi

Vedi anche

Si applica a