共用方式為


ISmsBinaryMessage.GetData 方法

定義

以二進位通訊協定描述單位傳回訊息的原始緩衝區, (PDU) 格式做為位元組陣列。

public:
 Platform::Array <byte> ^ GetData();
/// [Windows.Foundation.Metadata.Deprecated("SmsBinaryMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsAppMessage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
winrt::array_view <byte> GetData();
/// [Windows.Foundation.Metadata.Deprecated("SmsBinaryMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsAppMessage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
winrt::array_view <byte> GetData();
[Windows.Foundation.Metadata.Deprecated("SmsBinaryMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsAppMessage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
public byte[] GetData();
[Windows.Foundation.Metadata.Deprecated("SmsBinaryMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsAppMessage.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public byte[] GetData();
function getData()
Public Function GetData () As Byte()

傳回

Byte[]

byte[]

位元組陣列,表示訊息資料。 如果沒有訊息資料,則傳回的陣列是空的。

屬性

Windows 需求

應用程式功能
cellularMessaging sms

適用於