Freigeben über


EventSource.RemoveSolitaryHandler<T> Method

Definition

Removes a single event handler for an event to an EventSource.

protected static void RemoveSolitaryHandler<T> (T primaryEventSource, ref System.Collections.Generic.List<T> secondaryEventSources, Delegate handler, string key = "") where T : Microsoft.VisualStudio.Shell.Events.EventSource;
static member RemoveSolitaryHandler : 'T * List * Delegate * string -> unit (requires 'T :> Microsoft.VisualStudio.Shell.Events.EventSource)
Protected Shared Sub RemoveSolitaryHandler(Of T As EventSource) (primaryEventSource As T, ByRef secondaryEventSources As List(Of T), handler As Delegate, Optional key As String = "")

Type Parameters

T

The EventSource-derived type exposing managed events for shell COM events

Parameters

primaryEventSource
T

The primary instance of T

secondaryEventSources
List<T>

The collection of secondary instances of T

handler
Delegate

The event handler to add

key
String

The key identifying the event to be handled

Applies to