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
pItem
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject[in] The item to be copied from the toolbox onto the clipboard.
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
- 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.