次の方法で共有


EventHandlerExtensions.Raise Method

Definition

Overloads

Raise(Delegate, Object, EventArgs)

Invokes any event handlers that are hooked to the specified event.

Raise(EventHandler, Object, EventArgs)

Invokes any event handlers that are hooked to the specified event.

Raise<T>(EventHandler<T>, Object, T)

Invokes any event handlers that are hooked to the specified event.

Raise(Delegate, Object, EventArgs)

Invokes any event handlers that are hooked to the specified event.

public:
[System::Runtime::CompilerServices::Extension]
 static void Raise(Delegate ^ handler, System::Object ^ sender, EventArgs ^ e);
public static void Raise (this Delegate? handler, object sender, EventArgs e);
static member Raise : Delegate * obj * EventArgs -> unit
<Extension()>
Public Sub Raise (handler As Delegate, sender As Object, e As EventArgs)

Parameters

handler
Delegate

The event. Null is allowed.

sender
Object

The value to pass as the sender of the event.

e
EventArgs

Event arguments to include.

Applies to

Raise(EventHandler, Object, EventArgs)

Invokes any event handlers that are hooked to the specified event.

public:
[System::Runtime::CompilerServices::Extension]
 static void Raise(EventHandler ^ handler, System::Object ^ sender, EventArgs ^ e);
public static void Raise (this EventHandler? handler, object sender, EventArgs e);
static member Raise : EventHandler * obj * EventArgs -> unit
<Extension()>
Public Sub Raise (handler As EventHandler, sender As Object, e As EventArgs)

Parameters

handler
EventHandler

The event. Null is allowed.

sender
Object

The value to pass as the sender of the event.

e
EventArgs

Event arguments to include.

Applies to

Raise<T>(EventHandler<T>, Object, T)

Invokes any event handlers that are hooked to the specified event.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void Raise(EventHandler<T> ^ handler, System::Object ^ sender, T e);
public static void Raise<T> (this EventHandler<T>? handler, object sender, T e);
static member Raise : EventHandler<'T> * obj * 'T -> unit
<Extension()>
Public Sub Raise(Of T) (handler As EventHandler(Of T), sender As Object, e As T)

Type Parameters

T

The type of EventArgs.

Parameters

handler
EventHandler<T>

The event. Null is allowed.

sender
Object

The value to pass as the sender of the event.

e
T

Event arguments to include.

Applies to