共用方式為


SmsDevice.AccountPhoneNumber 屬性

定義

傳回與 SMS 裝置相關聯的電話號碼。 電話號碼可用來將內送訊息與帳戶產生關聯,也可能是外部儲存體機制,例如帳戶收件匣。

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

屬性值

String

Platform::String

winrt::hstring

帳戶電話號碼的字串表示。

實作

屬性

Windows 需求

應用程式功能
cellularMessaging sms

適用於