IVsLiteTree.AdviseTreeEvents(IVsLiteTreeEvents, UInt32) Method

Definition

Registers an IVsLiteTreeEvents interface and thus adds an events listener to the listener list.

C++/WinRT
int AdviseTreeEvents(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeEvents const & pEventSink, [Runtime::InteropServices::Out] unsigned int & pdwCookie);

Parameters

pEventSink
IVsLiteTreeEvents

[in] Pointer to events interface, IVsLiteTreeEvents.

pdwCookie
UInt32

[out] Cookie used to identify this particular instance of the events interface in calling UnadviseTreeEvents(UInt32).

Returns

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

Remarks

[C++]

From vsshell.idl:

HRESULT IVsLiteTree::AdviseTreeEvents(  
   [in] IVsLiteTreeEvents *pEventSink,   
   [out] VSCOOKIE *pdwCookie  
);  

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022