IVsHierarchyDropDataSource2.GetDropInfo Yöntem

Tanım

Sürüklenen öğelerin bir veya daha fazlası hakkında bilgi döndürür.

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

Parametreler

pdwOKEffects
UInt32

dışı DWORD DROPEFFECT_COPY, DROPEFFECT_LINK veya DROPEFFECT_MOVE efektinin etkisini belirten bir değer işaretçisi. Değerler birbirini dışlamalı ve birleştirilemez.

ppDataObject
IDataObject

dışı IDataObject Sürüklenen öğenin arabirimine yönelik işaretçi. Bu veri nesnesi, sürükle ve bırak işleminde aktarılan verileri içerir. Bırakma gerçekleşirse, bu veri nesnesi (öğe) hedef hiyerarşi veya hiyerarşi penceresinde birleştirilir.

ppDropSource
IDropSource

dışı IDropSource Sürüklenen öğenin arabirimine yönelik işaretçi.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Uygulamalar

Açıklamalar

COM Imzası

Vsshell. IDL dosyasından:

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

Arayanlar İçin Notlar

Bu yöntem, imleci kaynak verilerin üzerine sürüklediğiniz öğeyi temel alarak değiştirir. İmleç değerleri OLE tarafından belirlenir. Örneğin, DROP_NONE bir etkisi için, içinde çizgi olan bir daire görüntülenir; bir taşıma için, oklu bir kutu görüntülenir; bir kopya için, artı işareti olan taşı simgesi görüntülenir.

Şunlara uygulanır