Clipboard.SetAudio Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stores audio data (WaveAudio data format) on the Clipboard. The audio data can be a byte array or a stream.
Overloads
SetAudio(Byte[]) |
Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a byte array. |
SetAudio(Stream) |
Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a stream. |
SetAudio(Byte[])
Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a byte array.
public:
static void SetAudio(cli::array <System::Byte> ^ audioBytes);
public static void SetAudio (byte[] audioBytes);
static member SetAudio : byte[] -> unit
Public Shared Sub SetAudio (audioBytes As Byte())
Parameters
- audioBytes
- Byte[]
A byte array that contains audio data to store on the Clipboard.
Exceptions
audioBytes
is null
.
Remarks
This method adds data with auto-conversion disabled.
See also
- SetData(String, Object)
- SetDataObject
- SetFileDropList(StringCollection)
- SetImage(BitmapSource)
- SetText
- ContainsAudio()
- GetAudioStream()
- DataFormats
Applies to
SetAudio(Stream)
Stores audio data (WaveAudio data format) on the Clipboard. The audio data is specified as a stream.
public:
static void SetAudio(System::IO::Stream ^ audioStream);
public static void SetAudio (System.IO.Stream audioStream);
static member SetAudio : System.IO.Stream -> unit
Public Shared Sub SetAudio (audioStream As Stream)
Parameters
- audioStream
- Stream
A stream that contains audio data to store on the Clipboard.
Exceptions
audioStream
is null
.
Remarks
This method adds data with auto-conversion disabled.
See also
- SetData(String, Object)
- SetDataObject
- SetFileDropList(StringCollection)
- SetImage(BitmapSource)
- SetText
- ContainsAudio()
- GetAudioStream()
- DataFormats