แก้ไข

แชร์ผ่าน


Clipboard.SetAudio Method

Definition

Stores audio data (WaveAudio data format) on the Clipboard. The audio data can be a byte array or a stream.

Overloads

SetAudio(Byte[])

Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a byte array.

SetAudio(Stream)

Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a stream.

SetAudio(Byte[])

Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a byte array.

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

Parameters

audioBytes
Byte[]

A byte array that contains audio data to store on the Clipboard.

Exceptions

audioBytes is null.

Remarks

This method adds data with auto-conversion disabled.

See also

Applies to

SetAudio(Stream)

Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a stream.

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

Parameters

audioStream
Stream

A stream that contains audio data to store on the Clipboard.

Exceptions

audioStream is null.

Remarks

This method adds data with auto-conversion disabled.

See also

Applies to