System.Windows.Forms.DataObject.SetAudio Method

Adds a byte array to the data object in the DataFormats.WaveAudio format after converting it to a System.IO.Stream.

Syntax

public virtual void SetAudio (byte[] audioBytes)

Parameters

audioBytes
A byte array containing the audio data.

Remarks

To retrieve audio data from the data object, first use the DataObject.ContainsAudio method to determine whether the data object contains audio data before retrieving it with the DataObject.GetAudioStream method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0