Dela via


SmsBinaryMessage.SetData(Byte[]) Method

Definition

Specifies the raw binary payload of the SMS message. It should be formatted according to the protocol description unit (PDU) standard.

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())

Parameters

value

Byte[]

byte[]

A byte array representing message data. If there is no message data, the returned array is empty.

Implements

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

Windows requirements

App capabilities
cellularMessaging sms

Applies to