Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds data to the clipboard object.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Overrides Sub SetData ( _
format As String, _
autoConvert As Boolean, _
data As Object _
)
public override void SetData(
string format,
bool autoConvert,
Object data
)
public:
virtual void SetData(
String^ format,
bool autoConvert,
Object^ data
) override
abstract SetData :
format:string *
autoConvert:bool *
data:Object -> unit
override SetData :
format:string *
autoConvert:bool *
data:Object -> unit
public override function SetData(
format : String,
autoConvert : boolean,
data : Object
)
Parameters
- format
Type: System.String
The format of the data to set. See DataFormats for predefined formats.
- autoConvert
Type: System.Boolean
true to allow the data to be converted to another format; otherwise, false.
- data
Type: System.Object
The data to store.
Implements
IDataObject.SetData(String, Boolean, Object)
Remarks
This method delegates the call to the SetData 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.