IVsLiteTree.AdviseTreeEvents(IVsLiteTreeEvents, UInt32) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Registra uma IVsLiteTreeEvents interface e, portanto, adiciona um ouvinte de eventos à lista de ouvintes.
public:
int AdviseTreeEvents(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeEvents ^ pEventSink, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseTreeEvents(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeEvents const & pEventSink, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseTreeEvents (Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeEvents pEventSink, out uint pdwCookie);
abstract member AdviseTreeEvents : Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeEvents * uint32 -> int
Public Function AdviseTreeEvents (pEventSink As IVsLiteTreeEvents, ByRef pdwCookie As UInteger) As Integer
Parâmetros
- pEventSink
- IVsLiteTreeEvents
no Ponteiro para a interface de eventos, IVsLiteTreeEvents .
- pdwCookie
- UInt32
fora Cookie usado para identificar essa instância específica da interface de eventos na chamada UnadviseTreeEvents(UInt32) .
Retornos
Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.
Comentários
[C++]
De VSShell. idl:
HRESULT IVsLiteTree::AdviseTreeEvents(
[in] IVsLiteTreeEvents *pEventSink,
[out] VSCOOKIE *pdwCookie
);