Compartir a través de


IVsUIHierWinClipboardHelper.Copy Method

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

'Declaración
Function Copy ( _
    pDataObject As IDataObject _
) As Integer
'Uso
Dim instance As IVsUIHierWinClipboardHelper
Dim pDataObject As IDataObject
Dim returnValue As Integer

returnValue = instance.Copy(pDataObject)
int Copy(
    IDataObject pDataObject
)
int Copy(
    [InAttribute] IDataObject^ pDataObject
)
function Copy(
    pDataObject : IDataObject
) : int

Parameters

Return Value

Type: System.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
);

Permissions

See Also

Reference

IVsUIHierWinClipboardHelper Interface

IVsUIHierWinClipboardHelper Members

Microsoft.VisualStudio.Shell.Interop Namespace