SmsReceivedEventDetails.DeviceId 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回接收短信的网络接口的 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
属性值
包含 SMS 网络接口的 DeviceInformation ID 的字符串, (设备) 。 此值通常用于检索发件人和邮件正文等详细信息。 例如,可以使用 ID 显示一个弹出窗口,告知用户来自特定人员的新邮件已送达。 DeviceId 和 MessageIndex 的组合足以从 SMS 设备检索新消息。
- 属性
Windows 要求
应用功能 |
cellularMessaging
sms
|