IVsMonitorSelection.GetCurrentSelection Yöntem (IntPtr, UInt32, IVsMultiItemSelect, IntPtr)
Geçerli seçim için seçim kapsayıcısı geçerli proje hiyerarşisi ve proje öğesi döndürür.
Ad Alanı: Microsoft.VisualStudio.Shell.Interop
Derleme: Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)
Sözdizimi
int GetCurrentSelection(
out IntPtr ppHier,
out uint pitemid,
out IVsMultiItemSelect ppMIS,
out IntPtr ppSC
)
int GetCurrentSelection(
[OutAttribute] IntPtr% ppHier,
[OutAttribute] unsigned int% pitemid,
[OutAttribute] IVsMultiItemSelect^% ppMIS,
[OutAttribute] IntPtr% ppSC
)
abstract GetCurrentSelection :
ppHier:nativeint byref *
pitemid:uint32 byref *
ppMIS:IVsMultiItemSelect byref *
ppSC:nativeint byref -> int
Function GetCurrentSelection (
<OutAttribute> ByRef ppHier As IntPtr,
<OutAttribute> ByRef pitemid As UInteger,
<OutAttribute> ByRef ppMIS As IVsMultiItemSelect,
<OutAttribute> ByRef ppSC As IntPtr
) As Integer
Parametreler
- ppHier
[Çıkış] İşaretçi IVsHierarchy geçerli proje hiyerarşisi seçimi tek bir hiyerarşi aitse arabirimi.Seçim birden çok hiyerarşileri için aitse ppHier ayarlamak null.
- pitemid
[Çıkış] Geçerli proje öğesi için tanımlayıcı işaretçisi.pitemid Ayarlamak VSITEMID_SELECTION, birden çok öğe geçerli seçimi ile ilgilidir.Bu öğeleri kullanılarak erişilebilir IVsMultiItemSelect için arabirim işaret tarafından ppMIS.
- ppMIS
[Çıkış] İşaretçi IVsMultiItemSelect birden çok seçim erişmek için kullanılan arabirim.
- ppSC
[Çıkış] İşaretçi ISelectionContainer Properties penceresinde verilerine erişmek için kullanılan arabirim.
Dönüş Değeri
Type: System.Int32
Yöntem başarılı olursa, verir S_OK.Başarısız olursa, bir hata kodu döndürür.
Notlar
com imzası
Vsshell.idl:
HRESULT IVsMonitorSelection::GetCurrentSelection(
[out] IVsHierarchy **ppHier,
[out] VSITEMID *pitemid,
[out] IVsMultiItemSelect **ppMIS,
[out] ISelectionContainer **ppSC
);
Ayrıca bkz.
IVsMonitorSelection Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı
Başa dön