Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Called when one or more items are dragged out of the hierarchy or hierarchy window, or when the drag-and-drop operation is cancelled or completed.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Déclaration
Function DragLeave As Integer
'Utilisation
Dim instance As IVsHierarchyDropDataTarget
Dim returnValue As Integer
returnValue = instance.DragLeave()
int DragLeave()
int DragLeave()
function DragLeave() : int
Return Value
Type: System.Int32
Remarks
The DragLeave method is fired in either of the following cases:
When the user drags an item out of a given hierarchy window.
When the user cancels the current drag-and-drop operation.
When you call the DragEnter method, information on the target is displayed and a reference to the data object is created. Therefore, perform the following cleanup when you call the DragLeave method:
Remove any target feedback that is currently displayed.
Release any references to the data object.
Permissions
- 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
IVsHierarchyDropDataTarget Interface