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 in the specified format.
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, _
data As Object _
)
public override void SetData(
string format,
Object data
)
public:
virtual void SetData(
String^ format,
Object^ data
) override
abstract SetData :
format:string *
data:Object -> unit
override SetData :
format:string *
data:Object -> unit
public override function SetData(
format : String,
data : Object
)
Parameters
- format
Type: System.String
The format of the data to set. See DataFormats for predefined formats.
- data
Type: System.Object
The data to store.
Implements
IDataObject.SetData(String, 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.