SmsBinaryMessage.GetData 方法

定义

以二进制协议说明单元 (PDU) 格式作为字节数组返回消息的原始缓冲区。

public:
 virtual Platform::Array <byte> ^ GetData() = 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

适用于