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)

Syntax

'Declaration
Function EnableTreeEvents ( _
    dwCookie As UInteger, _
    fEnable As Integer _
) As Integer
'Usage
Dim instance As IVsLiteTree 
Dim dwCookie As UInteger 
Dim fEnable As Integer 
Dim returnValue As Integer 

returnValue = instance.EnableTreeEvents(dwCookie, _
    fEnable)
int EnableTreeEvents(
    uint dwCookie,
    int fEnable
)
int EnableTreeEvents(
    [InAttribute] unsigned int dwCookie, 
    [InAttribute] int fEnable
)
function EnableTreeEvents(
    dwCookie : uint, 
    fEnable : int
) : int

Parameters

  • fEnable
    Type: System.Int32

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

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsLiteTree Interface

IVsLiteTree Members

Microsoft.VisualStudio.Shell.Interop Namespace