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
format
Type: System.StringThe class type associated with the data. See DataFormats for the predefined formats.
autoConvert
Type: System.BooleanSpecifies 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
- 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.