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)
Syntax
'Declaration
Function OnDropNotify ( _
fDropped As Integer, _
dwEffects As UInteger _
) As Integer
'Usage
Dim instance As IVsHierarchyDropDataSource2
Dim fDropped As Integer
Dim dwEffects As UInteger
Dim returnValue As Integer
returnValue = instance.OnDropNotify(fDropped, _
dwEffects)
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: 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.
Implements
IVsHierarchyDropDataSource.OnDropNotify(Int32, UInt32)
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsHierarchyDropDataSource2 Interface