DataObject.SetAudio Method (Byte[])


Adds a Byte array to the data object in the WaveAudio format after converting it to a Stream.

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

public virtual void SetAudio(
	byte[] audioBytes


Type: System.Byte[]

A Byte array containing the audio data.

Exception Condition

audioBytes 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