Partager via


ClipboardObject.GetDataPresent Method (String, Boolean)

Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format, using an automatic conversion parameter to determine whether to convert the data to the 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, _
    autoConvert As Boolean _
) As Boolean
public override bool GetDataPresent(
    string format,
    bool autoConvert
)
public:
virtual bool GetDataPresent(
    String^ format, 
    bool autoConvert
) override
abstract GetDataPresent : 
        format:string * 
        autoConvert:bool -> bool  
override GetDataPresent : 
        format:string * 
        autoConvert:bool -> bool
public override function GetDataPresent(
    format : String, 
    autoConvert : boolean
) : boolean

Parameters

  • autoConvert
    Type: System.Boolean

    Specifies whether to check whether the data can be converted to the specified format (true), or check whether the data is in the specified format (false).

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, Boolean)

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