Compartilhar via


EventSource Class

Definition

Determines whether this EventSource is advised on its Visual Studio event source.

public ref class EventSource abstract
[Windows::Foundation::Metadata::WebHostHidden]
public ref class EventSource abstract
[Windows::Foundation::Metadata::WebHostHidden]
class EventSource abstract
public abstract class EventSource
type EventSource = class
Public MustInherit Class EventSource
Inheritance
EventSource
Derived

Constructors

EventSource()

Instantiates a new instance of EventSource.

Properties

IsAdvised

Indicates whether this EventSource is advised on its VS event source

Methods

AddHandler(Delegate, String)

Adds an event handler for the specified key

AddSolitaryHandler<T>(T, List<T>, Delegate, String)

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

Advise()

Called when the first event sink is added to the event source. The derived class should advise the VS events it is wrapping at this point. This method will always be called on the UI thread.

GetHandler(String)

Returns the handler for the given key, or null if none exists.

HasHandler(String)

Indicates whether the event identified by the given key has at least one handler

RaiseEvent<TEventArgs>(Object, TEventArgs, String)

Raises the event identified by key. All event handlers are called, regardless of whether an individual handler throws an exception.

RemoveHandler(Delegate, String)

Removes an event handler for the specified key.

RemoveSolitaryHandler<T>(T, List<T>, Delegate, String)

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

Unadvise()

Called when the last event sink is removed from the event source. The derived class should unadvise the VS events it is wrapping at this point. This method will always be called on the UI thread.

Applies to