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

適用於