Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
int EnableTreeEvents(
uint dwCookie,
int fEnable
)
int EnableTreeEvents(
[InAttribute] unsigned int dwCookie,
[InAttribute] int fEnable
)
abstract EnableTreeEvents :
dwCookie:uint32 *
fEnable:int -> int
function EnableTreeEvents(
dwCookie : uint,
fEnable : int
) : int
Parameters
- dwCookie
Type: System.UInt32
[in] The VSCOOKIE returned by the AdviseTreeEvents method.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.