SmsBinaryMessage class

Applies to Windows only

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

Syntax


var smsBinaryMessage = new Windows.Devices.Sms.SmsBinaryMessage();

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The SmsBinaryMessage class has these types of members:

Constructors

The SmsBinaryMessage class has these constructors.

ConstructorDescription
SmsBinaryMessage Creates an instance of the SmsBinaryMessage class.

 

Methods

The SmsBinaryMessage class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetData Returns the raw buffer of the message in binary protocol description unit (PDU) format as a byte array.
SetData Specifies the raw binary payload of the SMS message. It should be formatted according to the protocol description unit (PDU) standard.

 

Properties

The SmsBinaryMessage class has these properties.

PropertyAccess typeDescription

Format

Read/writeRetrieves the detected protocol description unit (PDU) format of this message.

Id

Read-onlyIndicates the ID of the asynchronous message operation.

MessageClass

Read-onlyReturns 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.

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.Devices.Sms
Windows::Devices::Sms [C++]

Metadata

Windows.winmd

Capabilities

sms

 

 

Show:
© 2014 Microsoft. All rights reserved.