EventHandlerExtensions.Raise Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
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.