Share via


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

Implements

IDataObject.SetData(Type, Object)

Remarks

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

.NET Framework Security

See Also

Reference

ClipboardObject Class

SetData Overload

Microsoft.VisualStudio.Data.Framework Namespace