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 microsoft.visualstudio.shell.interop.dll)

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

Parameters

dwCookie

[in] The VSCOOKIE returned by the AdviseTreeEvents method.

fEnable

[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.

[C++]

From vsshell.idl:

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