Freigeben über


IVsToolbox6.CopyToClipboard Method

Copies the item from the toolbox onto the clipboard.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

Syntax

'Declaration
Sub CopyToClipboard ( _
    pItem As IDataObject _
)
void CopyToClipboard(
    IDataObject pItem
)
void CopyToClipboard(
    [InAttribute] IDataObject^ pItem
)
abstract CopyToClipboard : 
        pItem:IDataObject -> unit
function CopyToClipboard(
    pItem : IDataObject
)

Parameters

Remarks

The way this method copies the item is different from putting pItem directly on the clipboard because the toolbox does some additional processing of the data object before sending it to the clipboard. The result of this method is the same as right-clicking the item in the toolbox and selecting Copy.

.NET Framework Security

See Also

Reference

IVsToolbox6 Interface

Microsoft.VisualStudio.Shell.Interop Namespace