SmsMessageReceivedEventArgs.TextMessage 属性

定义

检索保存消息的文本表示形式的 对象。 如果消息未成功解码,则返回错误。

public:
 property SmsTextMessage ^ TextMessage { SmsTextMessage ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("SmsMessageReceivedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
SmsTextMessage TextMessage();
/// [get: Windows.Foundation.Metadata.Deprecated("SmsMessageReceivedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
SmsTextMessage TextMessage();
public SmsTextMessage TextMessage { [Windows.Foundation.Metadata.Deprecated("SmsMessageReceivedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))] get; }
public SmsTextMessage TextMessage { [Windows.Foundation.Metadata.Deprecated("SmsMessageReceivedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")] get; }
var smsTextMessage = smsMessageReceivedEventArgs.textMessage;
Public ReadOnly Property TextMessage As SmsTextMessage

属性值

一个新的 SmsTextMessage 对象。

属性

Windows 要求

应用功能
cellularMessaging sms

适用于