DataObject::SetAudio Method (Stream^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds a Stream to the data object in the WaveAudio format.

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

public:
virtual void SetAudio(
	Stream^ audioStream
)

Parameters

audioStream
Type: System.IO::Stream^

A Stream containing the audio data.

Exception Condition
ArgumentNullException

audioStream is null.

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

.NET Framework
Available since 2.0
Return to top
Show: