Provides information about a dragged item in relation to its data source during a drag-and-drop operation within a hierarchy window. The interface extends and inherits from the IVsHierarchyDropDataSource interface. You only need to use IVsHierarchyDropDataSource2 if you need the additional methods.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Thetype exposes the following members.
|GetDropInfo||Returns information about one or more of the dragged items.|
|OnBeforeDropNotify||Enables the drag source to prompt to save unsaved items before dropping. Notifies the source hierarchy that information dragged from it is about to be dropped on a target. This method is called immediately after the mouse button is released on a drop.|
|OnDropNotify||Notifies clients the dragged item was dropped.|
Every drag-and-drop operation within a hierarchy requires information about the item dragged and where it is being dropped. IVsHierarchyDropDataSource2 provides the information about the dragged item. The IVsHierarchyDropDataTarget interface provides information about where the item is being dropped.Notes to Implementers
Hierarchies in VSPackages are most commonly used to display projects. Use this interface within your hierarchy implementation to include drag-and-drop behavior within and between hierarchies.