IVsUIHierWinClipboardHelperEvents.OnPaste(Int32, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Signals that a paste operation has occurred.
public:
int OnPaste(int fDataWasCut, System::UInt32 dwEffects);
public:
int OnPaste(int fDataWasCut, unsigned int dwEffects);
int OnPaste(int fDataWasCut, unsigned int dwEffects);
public int OnPaste (int fDataWasCut, uint dwEffects);
abstract member OnPaste : int * uint32 -> int
Public Function OnPaste (fDataWasCut As Integer, dwEffects As UInteger) As Integer
Parameters
- fDataWasCut
- 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
- 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(Int32, UInt32).
Returns
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.