HierarchyNode.GetDropInfo Method
Returns information about one or more of the items being dragged.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function GetDropInfo ( _
<OutAttribute> ByRef pdwOKEffects As UInteger, _
<OutAttribute> ByRef ppDataObject As IDataObject, _
<OutAttribute> ByRef ppDropSource As IDropSource _
) As Integer
'使用
Dim instance As HierarchyNode
Dim pdwOKEffects As UInteger
Dim ppDataObject As IDataObject
Dim ppDropSource As IDropSource
Dim returnValue As Integer
returnValue = instance.GetDropInfo(pdwOKEffects, _
ppDataObject, ppDropSource)
public virtual int GetDropInfo(
out uint pdwOKEffects,
out IDataObject ppDataObject,
out IDropSource ppDropSource
)
public:
virtual int GetDropInfo(
[OutAttribute] unsigned int% pdwOKEffects,
[OutAttribute] IDataObject^% ppDataObject,
[OutAttribute] IDropSource^% ppDropSource
)
public function GetDropInfo(
pdwOKEffects : uint,
ppDataObject : IDataObject,
ppDropSource : IDropSource
) : int
Parameters
pdwOKEffects
Type: System.UInt32%Value that describes the effects displayed while the item is being dragged, such as pointers that change during the drag-and-drop operation. For example, if the item is dragged over an invalid target point, such as the original location of the item, the pointer changes to a circle with a line through it; if the item is dragged over a valid target point, the pointer changes to a file or folder.
ppDataObject
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject%Contains the data being transferred in the drag-and-drop operation. If the drop occurs, then this data object (item) is incorporated into the target hierarchy or hierarchy window.
ppDropSource
Type: Microsoft.VisualStudio.Shell.Interop.IDropSource%Item being dragged.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsHierarchyDropDataSource2.GetDropInfo(UInt32%, IDataObject%, IDropSource%)
IVsHierarchyDropDataSource.GetDropInfo(UInt32%, IDataObject%, IDropSource%)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.