SetAudio Method (Stream)
Collapse the table of content
Expand the table of content

DataObject.SetAudio Method (Stream)

 

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

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

abstract SetAudio : 
        audioStream:Stream -> unit
override SetAudio : 
        audioStream:Stream -> unit

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:
© 2016 Microsoft