IVsHierarchyDropDataSource2::OnDropNotify Method (Int32, UInt32)

 

Notifies clients the dragged item was dropped.

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

int OnDropNotify(
	int fDropped,
	unsigned int dwEffects
)

Parameters

fDropped
Type: System::Int32

[in] If true, then the dragged item was dropped on the target. If false, no drop occurred.

dwEffects
Type: System::UInt32

[in] Pointer to a DWORD value indicating the effect of the drop: DROPEFFECT_COPY, DROPEFFECT_LINK, or DROPEFFECT_MOVE. The values are mutually exclusive and cannot be combined.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsHierarchyDropDataSource2::OnDropNotify(
   [in]BOOL fDropped,
   [in]DWORD dwEffects
);

Use this method to determine whether the data from the source hierarchy was dropped on the target.

Use the OnBeforeDropNotify method of IVsHierarchyDropDataSource2 to let the source hierarchy allow or disallow the drop before it occurs.

Return to top
Show: