Bagikan melalui


SmsBinaryMessage.SetData(Byte[]) Metode

Definisi

Menentukan payload biner mentah pesan SMS. Ini harus diformat sesuai dengan standar unit deskripsi protokol (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())

Parameter

value

Byte[]

byte[]

Array byte yang mewakili data pesan. Jika tidak ada data pesan, array yang dikembalikan kosong.

Penerapan

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

Persyaratan Windows

Kemampuan aplikasi
cellularMessaging sms

Berlaku untuk