Partilhar via


IVsLiteTree.EnableTreeEvents(UInt32, Int32) Method

Definition

Enables reporting of events on the tree.

public:
 int EnableTreeEvents(System::UInt32 dwCookie, int fEnable);
public:
 int EnableTreeEvents(unsigned int dwCookie, int fEnable);
int EnableTreeEvents(unsigned int dwCookie, int fEnable);
public int EnableTreeEvents (uint dwCookie, int fEnable);
abstract member EnableTreeEvents : uint32 * int -> int
Public Function EnableTreeEvents (dwCookie As UInteger, fEnable As Integer) As Integer

Parameters

dwCookie
UInt32

[in] The VSCOOKIE returned by the AdviseTreeEvents(IVsLiteTreeEvents, UInt32) method.

fEnable
Int32

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

Returns

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

Remarks

[C++]

From vsshell.idl:

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

Applies to