Share via


ClipboardObject.GetData Method (String, Boolean)

Retrieves the data stored in the clipboard object in the specified format, using an automated 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 GetData ( _
    format As String, _
    autoConvert As Boolean _
) As Object
public override Object GetData(
    string format,
    bool autoConvert
)
public:
virtual Object^ GetData(
    String^ format, 
    bool autoConvert
) override
abstract GetData : 
        format:string * 
        autoConvert:bool -> Object  
override GetData : 
        format:string * 
        autoConvert:bool -> Object
public override function GetData(
    format : String, 
    autoConvert : boolean
) : Object

Parameters

  • autoConvert
    Type: System.Boolean

    Specifies whether to convert the data to the specified format (true) or not (false).

Return Value

Type: System.Object
The data stored in the clipboard object in the specified format.

Implements

IDataObject.GetData(String, Boolean)

Remarks

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

.NET Framework Security

See Also

Reference

ClipboardObject Class

GetData Overload

Microsoft.VisualStudio.Data.Framework Namespace