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
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: 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: 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: 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
- 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.