ISmsMessage Interface

Definition

This interface is implemented by all types of SMS messages that are supported.

Note

This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband.

public interface class ISmsMessage
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Sms.LegacySmsApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3980156456, 27012, 19207, 129, 29, 141, 89, 6, 237, 60, 234)]
struct ISmsMessage
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Sms.LegacySmsApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3980156456, 27012, 19207, 129, 29, 141, 89, 6, 237, 60, 234)]
public interface ISmsMessage
Public Interface ISmsMessage
Derived
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Devices.Sms.LegacySmsApiContract (introduced in v1.0)
App capabilities
cellularMessaging sms

Properties

Id

Retrieves an ID for the message, which can later be specified in calling message store methods in order to get or delete the message.

MessageClass

Returns the message class, as determined by the operator's message network. The two most common classes are None (normal message) or Class0 (special operator message, such as a roaming warning that must be shown immediately to the user). A typical client for end-user messages ignores Class0 messages.

Applies to