共用方式為


EventSinkCollection Members

Include Protected Members
Include Inherited Members

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

The EventSinkCollection type exposes the following members.

Constructors

  Name Description
Public method EventSinkCollection Initializes a new instance of an EventSinkCollection object.

Top

Methods

  Name Description
Public method Add Adds an event and returns its cookie.
Public method Clear Removes all event cookies.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the specified event cookie from the collection.
Public method RemoveAt Removes the event cookie.
Public method SetAt Updates the event associated with the given cookie.
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)

Top

Properties

  Name Description
Public property Count Gets the total number of event cookies in the collection.
Public property Item Gets or sets the specified cookie from the collection.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Infrastructure. Microsoft Internal Only.

Top

See Also

Reference

EventSinkCollection Class

Microsoft.VisualStudio.Shell Namespace