I​Sms​Binary​Message I​Sms​Binary​Message I​Sms​Binary​Message 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 Windows Store app given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband: device apps.

public interface ISmsBinaryMessagepublic interface ISmsBinaryMessagePublic Interface ISmsBinaryMessage
Inheritance
ISmsBinaryMessageISmsBinaryMessageISmsBinaryMessage
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.Sms.LegacySmsApiContract (introduced v1)
Capabilities
cellularMessaging sms

Inherited Members

Inherited properties

Remarks

Interface inheritance

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

Properties

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
Value
SmsDataFormat SmsDataFormat SmsDataFormat

An enumerated value describing the SMS data format.

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

Methods

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[]
Returns
byte[] byte[] byte[]

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

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

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
Parameters
value
System.Byte[] System.Byte[] System.Byte[]

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

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