次の方法で共有


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

適用対象