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.

Stores audio data (WaveAudio data format) in this data object. The audio data is specified as a stream.

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

public void SetAudio(
	Stream audioStream
)

Parameters

audioStream
Type: System.IO.Stream

A stream that contains audio data to store in the data object.

Exception Condition
ArgumentNullException

audioStream is null.

This method adds data with auto-conversion disabled (the same as calling SetData(String, Object, Boolean) with autoConvert set to false).

.NET Framework
Available since 3.0
Return to top
Show: