Compartir a través de


KnownContactField.PhoneNumber Propiedad

Definición

Contiene el nombre del campo utilizado para los números de teléfono.

Nota:

KnownContactField puede modificarse o no estar disponible para las versiones después de Windows 8.1. En su lugar, use 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

Valor de propiedad

String

Platform::String

winrt::hstring

Nombre del campo.

Atributos

Requisitos de Windows

Características de aplicaciones
contactsSystem

Comentarios

Utilice esta propiedad con la propiedad ContactPicker.DesiredFields para especificar que desea obtener los números de teléfono de un contacto.

Se aplica a