ClipboardObject.GetDataPresent Method (String)
Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Overrides Function GetDataPresent ( _
format As String _
) As Boolean
public override bool GetDataPresent(
string format
)
public:
virtual bool GetDataPresent(
String^ format
) override
abstract GetDataPresent :
format:string -> bool
override GetDataPresent :
format:string -> bool
public override function GetDataPresent(
format : String
) : boolean
Parameters
format
Type: System.StringThe class type associated with the data. See DataFormats for the predefined formats.
Return Value
Type: System.Boolean
true if the data can be converted to or is associated with the specified format; otherwise, false.
Implements
IDataObject.GetDataPresent(String)
Remarks
This method delegates the call to the GetDataPresent method of the DataObject class.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.