共用方式為


IVsHierarchyDropDataSource2.OnDropNotify(Int32, UInt32) Method

Definition

Notifies clients the dragged item was dropped.

public:
 int OnDropNotify(int fDropped, System::UInt32 dwEffects);
public:
 int OnDropNotify(int fDropped, unsigned int dwEffects);
int OnDropNotify(int fDropped, unsigned int dwEffects);
public int OnDropNotify (int fDropped, uint dwEffects);
abstract member OnDropNotify : int * uint32 -> int
Public Function OnDropNotify (fDropped As Integer, dwEffects As UInteger) As Integer

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:

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