EventSinkCollection Class
Maps objects to and from event "cookies" that represent a client's registration with an event provider.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Shell.EventSinkCollection
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Class EventSinkCollection _
Implements IEnumerable
public class EventSinkCollection : IEnumerable
public ref class EventSinkCollection : IEnumerable
type EventSinkCollection =
class
interface IEnumerable
end
public class EventSinkCollection implements IEnumerable
The EventSinkCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
EventSinkCollection | Initializes a new instance of an EventSinkCollection object. |
Top
Properties
Name | Description | |
---|---|---|
Count | Gets the total number of event cookies in the collection. | |
Item | Gets or sets the specified cookie from the collection. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds an event and returns its cookie. | |
Clear | Removes all event cookies. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove | Removes the specified event cookie from the collection. | |
RemoveAt | Removes the event cookie. | |
SetAt | Updates the event associated with the given cookie. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable.GetEnumerator | Infrastructure. Microsoft Internal Only. |
Top
Remarks
This helps in the implementation of Visual Studio interfaces that have Advise/Unadvise methods like IVsHierarchy, IVsCfgProvider2, and IVsBuildableProjectCfg.
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.