Editare

Partajați prin


DataObject.SetAudio Method

Definition

Stores audio data (WaveAudio data format) in this data object. The audio data can be a byte array or a stream.

Overloads

SetAudio(Byte[])

Stores audio data (WaveAudio data format) in this data object. The audio data is specified as a byte array.

SetAudio(Stream)

Stores audio data (WaveAudio data format) in this data object. The audio data is specified as a stream.

SetAudio(Byte[])

Stores audio data (WaveAudio data format) in this data object. The audio data is specified as a byte array.

public:
 void SetAudio(cli::array <System::Byte> ^ audioBytes);
public void SetAudio (byte[] audioBytes);
member this.SetAudio : byte[] -> unit
Public Sub SetAudio (audioBytes As Byte())

Parameters

audioBytes
Byte[]

A byte array that contains audio data to store in the data object.

Exceptions

audioBytes is null.

Remarks

This method adds data with auto-conversion disabled (the same as calling SetData(String, Object, Boolean) with autoConvert set to false).

See also

Applies to

SetAudio(Stream)

Stores audio data (WaveAudio data format) in this data object. The audio data is specified as a stream.

public:
 void SetAudio(System::IO::Stream ^ audioStream);
public void SetAudio (System.IO.Stream audioStream);
member this.SetAudio : System.IO.Stream -> unit
Public Sub SetAudio (audioStream As Stream)

Parameters

audioStream
Stream

A stream that contains audio data to store in the data object.

Exceptions

audioStream is null.

Remarks

This method adds data with auto-conversion disabled (the same as calling SetData(String, Object, Boolean) with autoConvert set to false).

See also

Applies to