Share via


EventSinkCollection Class

Maps objects to and from event "cookies" that represent a client's registration with an event provider.

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Class EventSinkCollection _
    Implements IEnumerable
'Usage
Dim instance As EventSinkCollection
[CLSCompliantAttribute(false)]
public class EventSinkCollection : IEnumerable
[CLSCompliantAttribute(false)]
public ref class EventSinkCollection : IEnumerable
public class EventSinkCollection implements IEnumerable

Remarks

This helps in the implementation of Visual Studio interfaces that have Advise/Unadvise methods like IVsHierarchy, IVsCfgProvider2, and IVsBuildableProjectCfg.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Shell.EventSinkCollection

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

EventSinkCollection Members

Microsoft.VisualStudio.Shell Namespace