DirectBindingTCatchExceptionTException Method (FuncTException, Boolean) |
Catches any exceptions of the specified TException 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<TException>(
Func<TException, bool> exceptionHandler = null
)
where TException : Exception
Public Function CatchException(Of TException As Exception) (
Optional exceptionHandler As Func(Of TException, Boolean) = Nothing
) As DirectBinding(Of T)
member CatchException :
?exceptionHandler : Func<'TException, bool>
(* Defaults:
let _exceptionHandler = defaultArg exceptionHandler null
*)
-> DirectBinding<'T> when 'TException : Exception
Parameters
- exceptionHandler (Optional)
- Type: SystemFuncTException, 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.
Type Parameters
- TException
- Type of the exception to catch
Return Value
Type:
DirectBindingTThe binding that catches the specified exception.
See Also