Udostępnij za pośrednictwem


SmsMessageReceivedEventArgs.TextMessage Property

Definition

Retrieves an object that holds the text representation of the message. If the message is not successfully decoded, an error is returned.

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

Property Value

A new SmsTextMessage object.

Attributes

Windows requirements

App capabilities
cellularMessaging sms

Applies to