Delen via


ClipboardObject.GetDataPresent Method (Type)

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 Type _
) As Boolean
public override bool GetDataPresent(
    Type format
)
public:
virtual bool GetDataPresent(
    Type^ format
) override
abstract GetDataPresent : 
        format:Type -> bool  
override GetDataPresent : 
        format:Type -> bool
public override function GetDataPresent(
    format : Type
) : boolean

Parameters

  • format
    Type: System.Type

    The class type associated with the data.

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(Type)

Remarks

This method delegates the call to the GetDataPresent method of the DataObject class.

.NET Framework Security

See Also

Reference

ClipboardObject Class

GetDataPresent Overload

Microsoft.VisualStudio.Data.Framework Namespace