ISmsMessage ISmsMessage ISmsMessage ISmsMessage Interface

Definition

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

Note

This functionality is only available 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: device apps.

public : interface ISmsMessage
public interface ISmsMessage
Public Interface ISmsMessage
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.Sms.LegacySmsApiContract (introduced v1)
Capabilities
sms cellularMessaging

Properties

Id Id Id 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.

public : unsigned int Id { get; }
public uint Id { get; }
Public ReadOnly Property Id As uint
var uint = iSmsMessage.id;
Value
unsigned int uint uint uint

An integer ID for the message.

Additional features and requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.Sms.LegacySmsApiContract (introduced v1)
Capabilities
sms cellularMessaging

MessageClass MessageClass MessageClass 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.

public : SmsMessageClass MessageClass { get; }
public SmsMessageClass MessageClass { get; }
Public ReadOnly Property MessageClass As SmsMessageClass
var smsMessageClass = iSmsMessage.messageClass;
Additional features and requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.Sms.LegacySmsApiContract (introduced v1)
Capabilities
sms cellularMessaging