Click or drag to resize
EventHelperRaiseTEventArgs Method (Delegate, Object, TEventArgs, ActionException, Boolean)
Raises an event for an event handler.

Namespace: VirtualRadar.Interface
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void Raise<TEventArgs>(
	Delegate eventHandler,
	Object sender,
	TEventArgs args = null,
	Action<Exception> exceptionCallback = null,
	bool throwEventHelperException = false
)
where TEventArgs : EventArgs

Parameters

eventHandler
Type: SystemDelegate
sender
Type: SystemObject
args (Optional)
Type: TEventArgs
exceptionCallback (Optional)
Type: SystemActionException
Called whenever an exception is raised. If this is supplied then throwEventHelperException has no effect, all handlers will be called and this function won't let exceptions thrown by the handlers bubble (unless the callback throws an exception, in which case an EventHelperException that wraps the exception(s) will be thrown).
throwEventHelperException (Optional)
Type: SystemBoolean
True if exceptions thrown by event handlers should be wrapped into a single EventHelperException, false if the first exception thrown by an event handler should be rethrown. If this is false then the first event handler that throws an exception will stop all other event handlers from being called.

Type Parameters

TEventArgs
Remarks
Note that this is roughly 6x - 9x slower than a normal event handler call.
See Also