Freigeben über


IVsUIHierWinClipboardHelperEvents.OnPaste Method

Signals that a paste operation has occurred.

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

Syntax

'Declaration
Function OnPaste ( _
    fDataWasCut As Integer, _
    dwEffects As UInteger _
) As Integer
'Usage
Dim instance As IVsUIHierWinClipboardHelperEvents
Dim fDataWasCut As Integer
Dim dwEffects As UInteger
Dim returnValue As Integer

returnValue = instance.OnPaste(fDataWasCut, _
    dwEffects)
int OnPaste(
    int fDataWasCut,
    uint dwEffects
)
int OnPaste(
    [InAttribute] int fDataWasCut, 
    [InAttribute] unsigned int dwEffects
)
abstract OnPaste : 
        fDataWasCut:int * 
        dwEffects:uint32 -> int 
function OnPaste(
    fDataWasCut : int, 
    dwEffects : uint
) : int

Parameters

  • fDataWasCut
    Type: System.Int32
    [in] If true, then the IDataObject has been successfully pasted into a target hierarchy. If false, then the cut or copy operation was cancelled.
  • dwEffects
    Type: System.UInt32
    [in] Visual effects associated with the drag and drop operation, such as cursors, bitmaps, and so on. These should be the same visual effects used in OnDropNotify.

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 IVsUIHierWinClipboardHelperEvents::OnPaste(
   [in] BOOL fDataWasCut,
   [in] DWORD dwEffects
);

When an object is pasted, the destination project handles the contents of the IDataObject, and then advises listening hierarchies that the paste occurred by calling Paste. At that time, the source hierarchy can cleanup from the paste. For example, on a cut, the item is removed from the source hierarchy.

.NET Framework Security

See Also

Reference

IVsUIHierWinClipboardHelperEvents Interface

IVsUIHierWinClipboardHelperEvents Members

Microsoft.VisualStudio.Shell.Interop Namespace