EventSinkCollection Class
Maps objects to and from event "cookies" that represent a client's registration with an event provider.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
| Name | Description | |
|---|---|---|
![]() | EventSinkCollection() | Initializes a new instance of an EventSinkCollection object. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the total number of event cookies in the collection. |
![]() | Item[UInt32] | Gets or sets the specified cookie from the collection. |
| Name | Description | |
|---|---|---|
![]() | Add(Object) | Adds an event and returns its cookie. |
![]() | Clear() | Removes all event cookies. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Remove(Object) | Removes the specified event cookie from the collection. |
![]() | RemoveAt(UInt32) | Removes the event cookie. |
![]() | SetAt(UInt32, Object) | Updates the event associated with the given cookie. |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable.GetEnumerator() | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Only. |
This helps in the implementation of Visual Studio interfaces that have Advise/Unadvise methods like IVsHierarchy, IVsCfgProvider2, and IVsBuildableProjectCfg.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




