ISmsBinaryMessage ISmsBinaryMessage ISmsBinaryMessage ISmsBinaryMessage Interface

Definition

This interface provides access to the raw binary format of an SMS message. The message is stored in the industry standard protocol description unit (PDU) format (see the SMS specification GSM 03.40).

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 ISmsBinaryMessage : ISmsMessage
public interface ISmsBinaryMessage : ISmsMessage
Public Interface ISmsBinaryMessage Implements ISmsMessage
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Inheritance
ISmsBinaryMessageISmsBinaryMessageISmsBinaryMessageISmsBinaryMessage
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

Remarks

Interface inheritance

ISmsBinaryMessage inherits ISmsMessage. Types that implement ISmsBinaryMessage also implement the interface members of ISmsMessage.

Properties

Format Format Format Format

Retrieves the detected protocol description unit (PDU) format of this message.

public : SmsDataFormat Format { get; set; }
public SmsDataFormat Format { get; set; }
Public ReadWrite Property Format As SmsDataFormat
var smsDataFormat = iSmsBinaryMessage.format;
iSmsBinaryMessage.format = smsDataFormat;
Value
SmsDataFormat SmsDataFormat SmsDataFormat SmsDataFormat

An enumerated value describing the SMS data format.

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

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.

(Inherited from ISmsMessage)
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.

(Inherited from ISmsMessage)
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

Methods

GetData() GetData() GetData() GetData()

Returns the raw buffer of the message in binary protocol description unit (PDU) format as a byte array.

public : byte[] GetData()
public byte[] GetData()
Public Function GetData() As byte[]
var byte[] = iSmsBinaryMessage.getData();
Returns
byte[] byte[] byte[] byte[]

A byte array representing message data. If there is no message data, the returned array is empty.

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

SetData(Byte[]) SetData(Byte[]) SetData(Byte[]) SetData(Byte[])

Specifies the raw binary payload of the SMS message. It should be formatted according to the protocol description unit (PDU) standard.

public : void SetData(Byte[] value)
public void SetData(Byte[] value)
Public Function SetData(value As Byte[]) As void
iSmsBinaryMessage.setData(value);
Parameters
value
Byte[] Byte[] Byte[] Byte[]

A byte array representing message data, formatted according to the protocol description unit (PDU) standard.

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

See Also