System.Windows.Forms.DataObject.GetAudioStream Method

Retrieves an audio stream from the data object.

Syntax

public virtual System.IO.Stream GetAudioStream ()

Returns

A System.IO.Stream containing audio data or null if the data object does not contain any data in the DataFormats.WaveAudio format.

Remarks

Use the DataObject.ContainsAudio method to determine whether the data object contains audio data before retrieving it with this method.

Use the erload:System.Windows.Forms.DataObject.SetAudio method to add audio data to the data object.

Requirements

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