System.Windows.Forms.Clipboard.GetAudioStream Method

Retrieves an audio stream from the Clipboard.

Syntax

public static System.IO.Stream GetAudioStream ()

Returns

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

Remarks

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

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

Note:

The System.Windows.Forms.Clipboard class can only be used in threads set to single thread apartment (STA) mode. To use this class, ensure that your Main method is marked with the STAThreadAttribute attribute.

Requirements

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