IVsHierarchyDropDataTarget.DragLeave Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
int DragLeave();
public:
int DragLeave();
int DragLeave();
public int DragLeave ();
abstract member DragLeave : unit -> int
Public Function DragLeave () As Integer
Returns
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.