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.

SmsTextMessage.FromBinaryData | fromBinaryData method

Applies to Windows only

Decodes a binary message and places the results in a new instance of a text message. This method represents the binary message as a reference to a buffer of bytes and a selection of how the buffer is encoded. Therefore, it can be used when the message did not originate directly from the device or as an instance of an SmsBinaryMessage class.

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 smsTextMessage = Windows.Devices.Sms.SmsTextMessage.fromBinaryData(format, value);

Parameters

format

Type: SmsDataFormat

An SmsDataFormat enumerated value that identifies the format of a particular protocol description unit (PDU) buffer.

value

Type: array of Number [JavaScript] | System.Byte[] [.NET] | Platform::Array<uint8> [C++]

An array of bytes containing the binary data to decode.

Return value

Type: SmsTextMessage

A new SmsTextMessage object if the decoding was successful.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

Capabilities

sms

See also

SmsTextMessage

 

 

Show:
© 2014 Microsoft