共用方式為


IVsLiteTree.AdviseTreeEvents Method

Registers an IVsLiteTreeEvents interface and thus adds an events listener to the listener list.

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

Syntax

'宣告
Function AdviseTreeEvents ( _
    pEventSink As IVsLiteTreeEvents, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
'用途
Dim instance As IVsLiteTree
Dim pEventSink As IVsLiteTreeEvents
Dim pdwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.AdviseTreeEvents(pEventSink, _
    pdwCookie)
int AdviseTreeEvents(
    IVsLiteTreeEvents pEventSink,
    out uint pdwCookie
)
int AdviseTreeEvents(
    [InAttribute] IVsLiteTreeEvents^ pEventSink, 
    [OutAttribute] unsigned int% pdwCookie
)
abstract AdviseTreeEvents : 
        pEventSink:IVsLiteTreeEvents * 
        pdwCookie:uint32 byref -> int 
function AdviseTreeEvents(
    pEventSink : IVsLiteTreeEvents, 
    pdwCookie : uint
) : int

Parameters

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::AdviseTreeEvents(
   [in] IVsLiteTreeEvents *pEventSink, 
   [out] VSCOOKIE *pdwCookie
);

.NET Framework Security

See Also

Reference

IVsLiteTree Interface

IVsLiteTree Members

Microsoft.VisualStudio.Shell.Interop Namespace