SmsBinaryMessage SmsBinaryMessage SmsBinaryMessage SmsBinaryMessage SmsBinaryMessage Class

Definition

Represents an SMS message in raw PDU format. The data format differs depending on whether the message format (indicated by the value of the Format property) is GSM or CDMA.

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.

Note

Note that this class and its methods are supported for the maintenance of legacy desktop apps that used it in earlier versions of Windows; and if you do use this class, you must specify the Windows.Devices.Sms.LegacySmsApiContract in your app's manifest. Do not use this class if you are developing new apps for Windows 10. Instead, use the members of this namespace that do not require the Windows.Devices.Sms.LegacySmsApiContract.

public : sealed class SmsBinaryMessage : ISmsBinaryMessage, ISmsMessage
struct winrt::Windows::Devices::Sms::SmsBinaryMessage : ISmsBinaryMessage, ISmsMessage
public sealed class SmsBinaryMessage : ISmsBinaryMessage, ISmsMessage
Public NotInheritable Class SmsBinaryMessage Implements ISmsBinaryMessage, ISmsMessage
var smsBinaryMessage = new smsBinaryMessage();
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

Constructors

SmsBinaryMessage() SmsBinaryMessage() SmsBinaryMessage() SmsBinaryMessage() SmsBinaryMessage()

Creates an instance of the SmsBinaryMessage class.

Properties

Format Format Format Format Format

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

Id Id Id Id Id

Indicates the ID of the asynchronous message operation.

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.

Methods

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.