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)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("D84D04B8-8E0D-4298-AD9C-27F8C0D5484A")> _
Public Interface IVsHierarchyDropDataSource2 _
    Inherits IVsHierarchyDropDataSource
[InterfaceTypeAttribute()]
[GuidAttribute("D84D04B8-8E0D-4298-AD9C-27F8C0D5484A")]
public interface IVsHierarchyDropDataSource2 : IVsHierarchyDropDataSource
[InterfaceTypeAttribute()]
[GuidAttribute(L"D84D04B8-8E0D-4298-AD9C-27F8C0D5484A")]
public interface class IVsHierarchyDropDataSource2 : IVsHierarchyDropDataSource
[<InterfaceTypeAttribute()>]
[<GuidAttribute("D84D04B8-8E0D-4298-AD9C-27F8C0D5484A")>]
type IVsHierarchyDropDataSource2 =  
    interface
        interface IVsHierarchyDropDataSource
    end
public interface IVsHierarchyDropDataSource2 extends IVsHierarchyDropDataSource

The IVsHierarchyDropDataSource2 type exposes the following members.

Methods

  Name Description
Public method GetDropInfo Returns information about one or more of the dragged items.
Public method 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.
Public method OnDropNotify Notifies clients the dragged item was dropped.

Top

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace