Compartir a través de


SmsDevice.AccountPhoneNumber Propiedad

Definición

Devuelve el número de teléfono asociado al dispositivo SMS. El número de teléfono se puede usar para asociar mensajes entrantes a la cuenta y, posiblemente, un mecanismo de almacenamiento externo, como una bandeja de entrada de cuenta.

public:
 property Platform::String ^ AccountPhoneNumber { Platform::String ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
winrt::hstring AccountPhoneNumber();
/// [get: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
winrt::hstring AccountPhoneNumber();
public string AccountPhoneNumber { [Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))] get; }
public string AccountPhoneNumber { [Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")] get; }
var string = smsDevice.accountPhoneNumber;
Public ReadOnly Property AccountPhoneNumber As String

Valor de propiedad

String

Platform::String

winrt::hstring

Representación de cadena del número de teléfono de la cuenta.

Implementaciones

Atributos

Requisitos de Windows

Características de aplicaciones
cellularMessaging sms

Se aplica a