DirectBindingTCatchException Method (FuncException, Boolean) |
Catches any exceptions when setting the value of the binding
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public DirectBinding<T> CatchException(
Func<Exception, bool> exceptionHandler = null
)
Public Function CatchException (
Optional exceptionHandler As Func(Of Exception, Boolean) = Nothing
) As DirectBinding(Of T)
member CatchException :
?exceptionHandler : Func<Exception, bool>
(* Defaults:
let _exceptionHandler = defaultArg exceptionHandler null
*)
-> DirectBinding<'T>
Parameters
- exceptionHandler (Optional)
- Type: SystemFuncException, Boolean
Handler to call when setting the value, regardless of whether an exception occurs. Return true when the exception is handled, false to throw an exception.
Return Value
Type:
DirectBindingTThe binding that catches any exception.
See Also