System.Windows.Forms.DataObject.SetAudio Method

Adds a System.IO.Stream to the data object in the DataFormats.WaveAudio format.

Syntax

public virtual void SetAudio (System.IO.Stream audioStream)

Parameters

audioStream
A System.IO.Stream 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