다음을 통해 공유


IVsUICollection.AdviseCollectionChangeEvents Method

Definition

Registers for collection events.

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

Parameters

pAdvise
IVsUICollectionChangeEvents

[in] Interface to call on a collection event.

pCookie
UInt32

[out] Location to return an identifier for the event sink.

Returns

Returns S_OK if the method registered for the event.

Remarks

Call UnadviseCollectionChangeEvents to stop receiving notifications.

Applies to