IVsTrackSelectionEx.GetCurrentSelection(IntPtr, UInt32, IVsMultiItemSelect, IntPtr) Método

Definição

Retorna a seleção atual.

public:
 int GetCurrentSelection([Runtime::InteropServices::Out] IntPtr % ppHier, [Runtime::InteropServices::Out] System::UInt32 % pitemid, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsMultiItemSelect ^ % ppMIS, [Runtime::InteropServices::Out] IntPtr % ppSC);
public int GetCurrentSelection (out IntPtr ppHier, out uint pitemid, out Microsoft.VisualStudio.Shell.Interop.IVsMultiItemSelect ppMIS, out IntPtr ppSC);
abstract member GetCurrentSelection : nativeint * uint32 * IVsMultiItemSelect * nativeint -> int
Public Function GetCurrentSelection (ByRef ppHier As IntPtr, ByRef pitemid As UInteger, ByRef ppMIS As IVsMultiItemSelect, ByRef ppSC As IntPtr) As Integer

Parâmetros

ppHier
IntPtr

fora Ponteiro para um ponteiro para a IVsHierarchy interface da seleção atual.

pitemid
UInt32

fora Ponteiro para o identificador de item da seleção atual. Para obter uma lista de pitemid valores válidos, consulte VSITEMID .

ppMIS
IVsMultiItemSelect

fora Ponteiro para um ponteiro para a IVsMultiItemSelect interface da janela que contém a seleção atual.

ppSC
IntPtr

fora Ponteiro para um ponteiro para a ISelectionContainer interface da seleção atual.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Comentários

Assinatura COM

De VSShell. idl:

HRESULT IVsTrackSelectionEx::GetCurrentSelection(  
   [out] IVsHierarchy ** ppHier,  
   [out] VSITEMID * pitemid,  
   [out] IVsMultiItemSelect ** ppMIS,  
   [out] ISelectionContainer **ppSC  
);  

Se o conteúdo do pitemid parâmetro for VSITEMID_SELECTION , que indica indicar uma seleção composta por vários itens, recupere os itens selecionados com GetSelectedItems o usando a interface apontada pelo ppMIS .

Aplica-se a