SmsTextMessage.FromBinaryData(SmsDataFormat, Byte[]) 方法

定义

解码二进制消息并将结果置于文本消息的新实例中。 此方法将二进制消息表示为对字节缓冲区的引用以及缓冲区编码方式的选择。 因此,当消息不是直接源自设备或作为 SmsBinaryMessage 类的实例时,可以使用它。

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

参数

format
SmsDataFormat

一个 SmsDataFormat 枚举值,该值标识 PDU) 缓冲区 (特定协议说明单元的格式。

value

Byte[]

byte[]

包含要解码的二进制数据的字节数组。

返回

如果解码成功,则为新的 SmsTextMessage 对象。

属性

Windows 要求

应用功能
cellularMessaging sms

适用于