This documentation is archived and is not being maintained.

IVsLiteTree.EnableTreeEvents Method

Enables reporting of events on the tree.

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

int EnableTreeEvents (
	[InAttribute] uint dwCookie,
	[InAttribute] int fEnable
int EnableTreeEvents (
	/** @attribute InAttribute() */ UInt32 dwCookie, 
	/** @attribute InAttribute() */ int fEnable
function EnableTreeEvents (
	dwCookie : uint, 
	fEnable : int
) : int



[in] The VSCOOKIE returned by the AdviseTreeEvents method.


[in] Boolean. Set to true if events were enabled.

Return Value

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


From vsshell.idl:

HRESULT IVsLiteTree::EnableTreeEvents(
   [in] VSCOOKIE dwCookie, 
   [in] BOOL fEnable