Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AdviseTreeEvents Method

IVsLiteTree.AdviseTreeEvents Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int AdviseTreeEvents(
	IVsLiteTreeEvents pEventSink,
	out uint pdwCookie


Type: Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeEvents

[in] Pointer to events interface, IVsLiteTreeEvents.

Type: System.UInt32%

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

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.


From vsshell.idl:

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

Community Additions

© 2015 Microsoft