EventHandlerExtensionsSafeInvokeTEventHandler, TEventArgs(TEventHandler, ActionException, Delegate, Object, TEventArgs, Boolean) Method
Safely invokes event propagation with custom exception handler that accepts user handler delegate, continuing even if an attached user handler throws an exception.
Namespace: Gemstone.EventHandlerExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.110 -- Release Build+3e0464f4461df4d3e1175b13966eb47ff832554d
JavaScript does not support generic types or methods.
- eventHandler TEventHandler
- Source EventHandler to safely invoke.
- exceptionHandler ActionException, Delegate
- Custom delegate to handle encountered exceptions which includes parameter for event handler that threw the exception; when set to null, exception will be suppressed, see SuppressedException.
- sender Object
- Event source.
- args TEventArgs
- Event arguments.
- parallel Boolean (Optional)
- Call event handlers in parallel, when attached handlers are greater than one.
- TEventHandler
- MulticastDelegate type commonly derived from EventHandler.
- TEventArgs
- Type derived from EventArgs.
In Visual Basic and C#, you can call this method as an instance method on any object of type
TEventHandler. 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).
Event handler invocation list access will be locked on eventHandler.