Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ClipboardProxy.ContainsData(String) Method

Definition

Namespace:
Microsoft.VisualBasic.MyServices
Assembly:
Microsoft.VisualBasic.dll
Assembly:
Microsoft.VisualBasic.Forms.dll
Source:
ClipboardProxy.vb
Source:
ClipboardProxy.vb
Source:
ClipboardProxy.vb
Source:
ClipboardProxy.vb
Source:
ClipboardProxy.vb

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.

Indicates whether the Clipboard contains data in the specified custom format.

public:
 bool ContainsData(System::String ^ format);
public bool ContainsData(string format);
member this.ContainsData : string -> bool
Public Function ContainsData (format As String) As Boolean

Parameters

format
String

String. Name of the custom format to be checked. Required.

Returns

True if data in the specified custom format is stored on the Clipboard; otherwise False.

Examples

This example checks for data in the custom format specialFormat.

If My.Computer.Clipboard.ContainsData("specialFormat") Then
 MsgBox("Data found.")
End If

Replace specialFormat with the name of the custom format you wish to check.

Remarks

If you have placed custom formatted data on the Clipboard, this method allows you to check the Clipboard for data in that format.

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

Applies to

See also


Feedback

Was this page helpful?