Export (0) Print
Expand All

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 (
	[InAttribute] IVsLiteTreeEvents pEventSink,
	out uint pdwCookie
)
int AdviseTreeEvents (
	/** @attribute InAttribute() */ IVsLiteTreeEvents pEventSink, 
	/** @attribute OutAttribute() */ /** @ref */ UInt32 pdwCookie
)
JScript does not support passing value-type arguments by reference.

Parameters

pEventSink

[in] Pointer to events interface, IVsLiteTreeEvents.

pdwCookie

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

Return Value

If 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
);

Community Additions

ADD
Show:
© 2015 Microsoft