IVsUICollection.AdviseCollectionChangeEvents Method
Registers for collection events.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.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
- pAdvise
Type: Microsoft.VisualStudio.Shell.Interop.IVsUICollectionChangeEvents
[in] Interface to call on a collection event.
- pCookie
Type: System.UInt32%
[out] Location to return an identifier for the event sink.
Return Value
Type: System.Int32
Returns S_OK if the method registered for the event.
Remarks
Call UnadviseCollectionChangeEvents to stop receiving notifications.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.