次の方法で共有


IVsUIDynamicCollection.AdviseCollectionChangeEvents Method

Definition

Registers an event sink for collection change notifications.

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] The interface to call.

pCookie
UInt32

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

Returns

Returns S_OK if the sink was registered.

Implements

Applies to