Condividi tramite


KnownContactField.PhoneNumber Proprietà

Definizione

Contiene il nome del campo utilizzato per i numeri di telefono.

Nota

NotoContactField può essere modificato o non disponibile per le versioni dopo Windows 8.1. Usare invece ContactAddress, ContactPhone, ContactConnectedServiceAccount o ContactEmail.

public:
 static property Platform::String ^ PhoneNumber { Platform::String ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
static winrt::hstring PhoneNumber();
/// [get: Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
static winrt::hstring PhoneNumber();
public static string PhoneNumber { [Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public static string PhoneNumber { [Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var string = KnownContactField.phoneNumber;
Public Shared ReadOnly Property PhoneNumber As String

Valore della proprietà

String

Platform::String

winrt::hstring

Nome del campo.

Attributi

Requisiti Windows

Funzionalità dell'app
contactsSystem

Commenti

Utilizzare questa proprietà con la proprietà ContactPicker.DesiredFields per specificare che si desidera ottenere i numeri di telefono di un contatto.

Si applica a