SmsTextMessage.FromBinaryData(SmsDataFormat, Byte[]) Method

Definition

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.

public:
 static SmsTextMessage ^ FromBinaryData(SmsDataFormat format, Platform::Array <byte> ^ value);
/// [Windows.Foundation.Metadata.Deprecated("ISmsTextMessageStatics may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
 static SmsTextMessage FromBinaryData(SmsDataFormat const& format, winrt::array_view <byte> const& value);
/// [Windows.Foundation.Metadata.Deprecated("ISmsTextMessageStatics may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
 static SmsTextMessage FromBinaryData(SmsDataFormat const& format, winrt::array_view <byte> const& value);
[Windows.Foundation.Metadata.Deprecated("ISmsTextMessageStatics may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
public static SmsTextMessage FromBinaryData(SmsDataFormat format, byte[] value);
[Windows.Foundation.Metadata.Deprecated("ISmsTextMessageStatics may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public static SmsTextMessage FromBinaryData(SmsDataFormat format, byte[] value);
function fromBinaryData(format, value)
Public Shared Function FromBinaryData (format As SmsDataFormat, value As Byte()) As SmsTextMessage

Parameters

format
SmsDataFormat

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

value

Byte[]

byte[]

An array of bytes containing the binary data to decode.

Returns

A new SmsTextMessage object if the decoding was successful.

Attributes

Windows requirements

App capabilities
cellularMessaging sms

Applies to