ClipboardObject.SetData Method (Type, Object)
Adds data to the clipboard object, using the specified type as the 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 Type, _
data As Object _
)
public override void SetData(
Type format,
Object data
)
public:
virtual void SetData(
Type^ format,
Object^ data
) override
abstract SetData :
format:Type *
data:Object -> unit
override SetData :
format:Type *
data:Object -> unit
public override function SetData(
format : Type,
data : Object
)
Parameters
format
Type: System.TypeThe format of the data to set. See DataFormats for predefined formats.
data
Type: System.ObjectThe data to store.
Implements
IDataObject.SetData(Type, 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.