다음을 통해 공유


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

적용 대상