Udostępnij za pośrednictwem


My.Computer.Clipboard.ContainsAudio Method

Indicates whether the Clipboard contains audio data.

' Usage
Dim value As Boolean = My.Computer.Clipboard.ContainsAudio()
' Declaration
Public Function ContainsAudio() As Boolean

Return Value

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

Tasks

The following table lists examples of tasks involving the My.Computer.Clipboard.ContainsAudio method.

To

See

Determine what type of data is stored on the Clipboard

How to: Determine What Type of File is Stored on the Clipboard in Visual Basic

Example

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

Requirements

Namespace:Microsoft.VisualBasic.MyServices

Class:ClipboardProxy (provides access to Clipboard)

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

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

Permissions

No permissions are required.

See Also

Tasks

How to: Determine What Type of File is Stored on the Clipboard in Visual Basic

Reference

My.Computer.Clipboard Object

Clipboard.ContainsAudio

My.Computer.Clipboard.GetAudioStream Method

My.Computer.Clipboard.SetAudio Method

Other Resources

Playing Sounds