SmsBinaryMessage.SetData(Byte[]) 方法

定义

指定 SMS 消息的原始二进制有效负载。 应根据 PDU) 标准的协议说明单元 (设置格式。

public:
 virtual void SetData(Platform::Array <byte> ^ value) = SetData;
/// [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)]
void SetData(winrt::array_view <byte> const& value);
/// [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")]
void SetData(winrt::array_view <byte> const& value);
[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 void SetData(byte[] value);
[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 void SetData(byte[] value);
function setData(value)
Public Sub SetData (value As Byte())

参数

value

Byte[]

byte[]

表示消息数据的字节数组。 如果没有消息数据,则返回的数组为空。

实现

M:Windows.Devices.Sms.ISmsBinaryMessage.SetData(System.Byte[]) M:Windows.Devices.Sms.ISmsBinaryMessage.SetData(byte[])
属性

Windows 要求

应用功能
cellularMessaging sms

适用于