IVsLiteTree.AdviseTreeEvents Method (IVsLiteTreeEvents, UInt32)
Visual Studio 2015
Registers an IVsLiteTreeEvents interface and thus adds an events listener to the listener list.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pEventSink
-
Type:
Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeEvents
[in] Pointer to events interface, IVsLiteTreeEvents.
- pdwCookie
-
Type:
System.UInt32
[out] Cookie used to identify this particular instance of the events interface in calling UnadviseTreeEvents.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
[C++]
From vsshell.idl:
HRESULT IVsLiteTree::AdviseTreeEvents( [in] IVsLiteTreeEvents *pEventSink, [out] VSCOOKIE *pdwCookie );
Show: