Share via


SmsReceivedEventDetails.DeviceId 속성

정의

SMS 메시지를 받은 네트워크 인터페이스의 DeviceInformation ID를 반환합니다. 이 ID를 SmsDevice.FromIdAsync 에 전달하여 디바이스를 활성화하고 추가 메시지 세부 정보를 검색할 수 있습니다.

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

속성 값

String

Platform::String

winrt::hstring

SMS 네트워크 인터페이스(디바이스)의 DeviceInformation ID를 포함하는 문자열입니다. 이 값은 일반적으로 보낸 사람 및 메시지 본문과 같은 세부 정보를 검색하는 데 사용됩니다. 예를 들어 ID를 사용하여 특정 사용자의 새 메시지가 도착했음을 사용자에게 알리는 팝업을 표시할 수 있습니다. DeviceId와 MessageIndex 의 조합은 SMS 디바이스에서 새 메시지를 검색하기에 충분합니다.

특성

Windows 요구 사항

앱 기능
cellularMessaging sms

적용 대상