Partager via


IVsUIDynamicCollection.AdviseCollectionChangeEvents Method

Registers an event sink for collection change notifications.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Function AdviseCollectionChangeEvents ( _
    pAdvise As IVsUICollectionChangeEvents, _
    <OutAttribute> ByRef pCookie As UInteger _
) As Integer
int AdviseCollectionChangeEvents(
    IVsUICollectionChangeEvents pAdvise,
    out uint pCookie
)
int AdviseCollectionChangeEvents(
    [InAttribute] IVsUICollectionChangeEvents^ pAdvise, 
    [OutAttribute] unsigned int% pCookie
)
abstract AdviseCollectionChangeEvents : 
        pAdvise:IVsUICollectionChangeEvents * 
        pCookie:uint32 byref -> int
function AdviseCollectionChangeEvents(
    pAdvise : IVsUICollectionChangeEvents, 
    pCookie : uint
) : int

Parameters

  • pCookie
    Type: UInt32%

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

Return Value

Type: Int32
Returns S_OK if the sink was registered.

.NET Framework Security

See Also

Reference

IVsUIDynamicCollection Interface

Microsoft.VisualStudio.Shell.Interop Namespace