Sdílet prostřednictvím


IVsLiteTree.AdviseTreeEvents(IVsLiteTreeEvents, UInt32) Method

Definition

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

public:
 int AdviseTreeEvents(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeEvents ^ pEventSink, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseTreeEvents(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeEvents const & pEventSink, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseTreeEvents (Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeEvents pEventSink, out uint pdwCookie);
abstract member AdviseTreeEvents : Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeEvents * uint32 -> int
Public Function AdviseTreeEvents (pEventSink As IVsLiteTreeEvents, ByRef pdwCookie As UInteger) As Integer

Parameters

pEventSink
IVsLiteTreeEvents

[in] Pointer to events interface, IVsLiteTreeEvents.

pdwCookie
UInt32

[out] Cookie used to identify this particular instance of the events interface in calling UnadviseTreeEvents(UInt32).

Returns

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  
);  

Applies to