共用方式為


IVsHierarchyDropDataSource2.GetDropInfo Method

Definition

Returns information about one or more of the dragged items.

public:
 int GetDropInfo([Runtime::InteropServices::Out] System::UInt32 % pdwOKEffects, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IDataObject ^ % ppDataObject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDropSource ^ % ppDropSource);
int GetDropInfo([Runtime::InteropServices::Out] unsigned int & pdwOKEffects, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IDataObject const & & ppDataObject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IDropSource const & & ppDropSource);
public int GetDropInfo (out uint pdwOKEffects, out Microsoft.VisualStudio.OLE.Interop.IDataObject ppDataObject, out Microsoft.VisualStudio.Shell.Interop.IDropSource ppDropSource);
abstract member GetDropInfo : uint32 * IDataObject * IDropSource -> int
Public Function GetDropInfo (ByRef pdwOKEffects As UInteger, ByRef ppDataObject As IDataObject, ByRef ppDropSource As IDropSource) As Integer

Parameters

pdwOKEffects
UInt32

[out] Pointer to a DWORD value indicating the effect of the drop: DROPEFFECT_COPY, DROPEFFECT_LINK, or DROPEFFECT_MOVE. The values are mutually exclusive and cannot be combined.

ppDataObject
IDataObject

[out] Pointer to the IDataObject interface of the dragged item. This data object contains the data transferred in the drag-and-drop operation. If the drop occurs, then this data object (item) is incorporated in the target hierarchy or hierarchy window.

ppDropSource
IDropSource

[out] Pointer to the IDropSource interface of the dragged item.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsHierarchyDropDataSource2::GetDropInfo(  
   [out]DWORD* pdwOKEffects,  
   [out]IDataObject** ppDataObject,  
   [out]IDropSource** ppDropSource  
);  

Notes for Callers

This method changes the cursor based on the item that the source data is dragged over. The cursor values are determined by OLE. For example, for an effect of DROP_NONE, a circle with a line through it is displayed; for a move, a box with an arrow is displayed; and for a copy, the move icon with a plus sign is displayed.

Applies to