ClipboardProxy.ContainsAudio Method

Definition

Indicates whether the Clipboard contains audio data.

public:
 bool ContainsAudio();
public bool ContainsAudio ();
member this.ContainsAudio : unit -> bool
Public Function ContainsAudio () As Boolean

Returns

True if audio data is stored on the Clipboard; otherwise False.

Examples

This example determines whether the Clipboard contains audio data and displays the result.

If My.Computer.Clipboard.ContainsAudio() Then
   MsgBox("The clipboard contains audio data.")
Else
   MsgBox("The clipboard does not contain audio data.")
End If

Remarks

Availability by Project Type

Project type Available
Windows Application Yes
Class Library Yes
Console Application Yes
Windows Control Library Yes
Web Control Library No
Windows Service Yes
Web Site No

Security

UIPermission
AllClipboard permission is required to access the system Clipboard.

Applies to

See also