EventHelperRaiseQuicklyTEventArgs Method (EventHandlerTEventArgs, Object, FuncTEventArgs) |
Raises an event for an event handler. This is 6x to 9x faster than the Raise methods but, unlike those methods, if one of
the event handlers throws an exception then no further handlers are called.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static void RaiseQuickly<TEventArgs>(
EventHandler<TEventArgs> eventHandler,
Object sender,
Func<TEventArgs> buildArgsCallback
)
where TEventArgs : EventArgs
Public Shared Sub RaiseQuickly(Of TEventArgs As EventArgs) (
eventHandler As EventHandler(Of TEventArgs),
sender As Object,
buildArgsCallback As Func(Of TEventArgs)
)
public:
generic<typename TEventArgs>
where TEventArgs : EventArgs
static void RaiseQuickly(
EventHandler<TEventArgs>^ eventHandler,
Object^ sender,
Func<TEventArgs>^ buildArgsCallback
)
static member RaiseQuickly :
eventHandler : EventHandler<'TEventArgs> *
sender : Object *
buildArgsCallback : Func<'TEventArgs> -> unit when 'TEventArgs : EventArgs
Parameters
- eventHandler
- Type: SystemEventHandlerTEventArgs
- sender
- Type: SystemObject
- buildArgsCallback
- Type: SystemFuncTEventArgs
Type Parameters
- TEventArgs
See Also