EventHandlerExtensionsRaiseEvent(EventHandler, Object) Method
Raises the event of the source EventHandler.
Namespace: DevCase.Extensions.EventHandlerExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static void RaiseEvent(
this EventHandler handler,
Object sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Sub RaiseEvent (
handler As EventHandler,
sender As Object
)
Dim handler As EventHandler
Dim sender As Object
handler.RaiseEvent(sender)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static void RaiseEvent(
EventHandler^ handler,
Object^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member RaiseEvent :
handler : EventHandler *
sender : Object -> unit
No code example is currently available or this language may not be supported.
- handler EventHandler
-
The source EventHandler.
- sender Object
-
The source of the event.
In Visual Basic and C#, you can call this method as an instance method on any object of type
EventHandler. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim handler As New EventHandler(Of EventArgs)(AddressOf DoClick)
handler.RaiseEvent(Me)
Private Sub DoClick(sender As Object, e As EventArgs) Handles MyBase.Click
MsgBox("Click event raised.")
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.