PhoneNumberFormatter.Format Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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
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
Stringa contenente il numero di telefono, nel formato specificato.
- Attributi
Vedi anche
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per