Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SmsBinaryMessage class

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.

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.

Syntax


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

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 (Windows 10 device family)

Device family

Desktop

API contract

Windows.Devices.Sms.LegacySmsApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Devices.Sms.LegacySmsApiContract.winmd

Capabilities

sms

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

See also

Object
ISmsBinaryMessage
ISmsMessage

 

 

Show:
© 2015 Microsoft