다음을 통해 공유


IVsIntellisenseProjectManager.AdviseIntellisenseProjectEvents Method

Definition

Registers an event sink to receive load status of an IntelliSense project.

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

Parameters

pSink
IVsIntellisenseProjectEventSink

[In] Pointer to an implementation of IVsIntellisenseProjectEventSink.

pdwCookie
UInt32

[out] Pointer to an object of type VSCOOKIE. Used in the UnadviseIntellisenseProjectEvents(UInt32) method when unregistering the event sink.

Returns

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

Applies to