IVsHierarchyDropDataSource2.OnDropNotify(Int32, UInt32) Method

Definition

Notifies clients the dragged item was dropped.

C++/CX
public:
 int OnDropNotify(int fDropped, unsigned int dwEffects);

Parameters

fDropped
Int32

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

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

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

cpp#
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.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022