IndirectBindingTCatchException 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 IndirectBinding<T> CatchException(
Func<Exception, bool> exceptionHandler = null
)
Public Function CatchException (
Optional exceptionHandler As Func(Of Exception, Boolean) = Nothing
) As IndirectBinding(Of T)
member CatchException :
?exceptionHandler : Func<Exception, bool>
(* Defaults:
let _exceptionHandler = defaultArg exceptionHandler null
*)
-> IndirectBinding<'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:
IndirectBindingTThe binding that catches any exception.
See Also