共用方式為


IVsHierarchyDropDataSource2 Interface

Definition

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.

public interface class IVsHierarchyDropDataSource2 : Microsoft::VisualStudio::Shell::Interop::IVsHierarchyDropDataSource
public interface class IVsHierarchyDropDataSource2 : Microsoft::VisualStudio::Shell::Interop::IVsHierarchyDropDataSource
__interface IVsHierarchyDropDataSource2 : Microsoft::VisualStudio::Shell::Interop::IVsHierarchyDropDataSource
[System.Runtime.InteropServices.Guid("D84D04B8-8E0D-4298-AD9C-27F8C0D5484A")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsHierarchyDropDataSource2 : Microsoft.VisualStudio.Shell.Interop.IVsHierarchyDropDataSource
[System.Runtime.InteropServices.Guid("D84D04B8-8E0D-4298-AD9C-27F8C0D5484A")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsHierarchyDropDataSource2 : Microsoft.VisualStudio.Shell.Interop.IVsHierarchyDropDataSource
[<System.Runtime.InteropServices.Guid("D84D04B8-8E0D-4298-AD9C-27F8C0D5484A")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsHierarchyDropDataSource2 = interface
    interface IVsHierarchyDropDataSource
[<System.Runtime.InteropServices.Guid("D84D04B8-8E0D-4298-AD9C-27F8C0D5484A")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsHierarchyDropDataSource2 = interface
    interface IVsHierarchyDropDataSource
Public Interface IVsHierarchyDropDataSource2
Implements IVsHierarchyDropDataSource
Attributes
Implements

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.

Methods

GetDropInfo(UInt32, IDataObject, IDropSource)

Returns information about one or more of the dragged items.

OnBeforeDropNotify(IDataObject, UInt32, Int32)

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(Int32, UInt32)

Notifies clients the dragged item was dropped.

Applies to