IVsHierarchyDropDataSource2 Interface

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.

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

public interface IVsHierarchyDropDataSource2 : IVsHierarchyDropDataSource

The IVsHierarchyDropDataSource2 type exposes the following members.

Public methodGetDropInfoReturns information about one or more of the dragged items.
Public methodOnBeforeDropNotifyEnables 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.
Public methodOnDropNotifyNotifies 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft