Freigeben über


IVsHierarchyDropDataSource2.OnDropNotify Method

Notifies clients the dragged item was dropped.

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

Syntax

'Declaration
Function OnDropNotify ( _
    fDropped As Integer, _
    dwEffects As UInteger _
) As Integer
int OnDropNotify(
    int fDropped,
    uint dwEffects
)
int OnDropNotify(
    [InAttribute] int fDropped, 
    [InAttribute] unsigned int dwEffects
)
abstract OnDropNotify : 
        fDropped:int * 
        dwEffects:uint32 -> int
function OnDropNotify(
    fDropped : int, 
    dwEffects : uint
) : int

Parameters

  • fDropped
    Type: Int32

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

  • dwEffects
    Type: 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: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

.NET Framework Security

See Also

Reference

IVsHierarchyDropDataSource2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace