ISmsBinaryMessage ISmsBinaryMessage ISmsBinaryMessage ISmsBinaryMessage ISmsBinaryMessage Interface


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


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
struct winrt::Windows::Devices::Sms::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.

Windows 10 requirements

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


Interface inheritance

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


Format Format Format Format Format

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

Id 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)
MessageClass 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)


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

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

SetData(Byte[]) 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.

See also