Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Copies a data object from a hierarchy to the clipboard.
Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function Copy ( _
    pDataObject As IDataObject _
) As Integer
int Copy(
    IDataObject pDataObject
)
int Copy(
    [InAttribute] IDataObject^ pDataObject
)
abstract Copy : 
        pDataObject:IDataObject -> int
function Copy(
    pDataObject : IDataObject
) : int
Parameters
- pDataObject 
 Type: Microsoft.VisualStudio.OLE.Interop.IDataObject- [in] Pointer to the IDataObject copied from the source hierarchy. 
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsUIHierWinClipboardHelper::Copy(
   [in] IDataObject *pDataObject
);
.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.