Partager via


ClipboardObject.SetData Method (String, Boolean, Object)

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

  • autoConvert
    Type: System.Boolean

    true to allow the data to be converted to another format; otherwise, false.

Implements

IDataObject.SetData(String, Boolean, 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