Condividi tramite


ISmsDevice.AccountPhoneNumber Proprietà

Definizione

Restituisce il numero di telefono associato al dispositivo SMS. Il numero di telefono può essere usato per associare i messaggi in arrivo all'account ed eventualmente un meccanismo di archiviazione esterno, ad esempio una posta in arrivo dell'account.

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 = iSmsDevice.accountPhoneNumber;
Public ReadOnly Property AccountPhoneNumber As String

Valore della proprietà

String

Platform::String

winrt::hstring

Rappresentazione di stringa del numero di telefono dell'account.

Attributi

Requisiti Windows

Funzionalità dell'app
cellularMessaging sms

Si applica a