Expression.Catch Method

Creates a CatchBlock representing a catch statement.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Catch(ParameterExpression, Expression) Creates a CatchBlock representing a catch statement with a reference to the caught Exception object for use in the handler body.
Public method Static member Catch(Type, Expression) Creates a CatchBlock representing a catch statement.
Public method Static member Catch(ParameterExpression, Expression, Expression) Creates a CatchBlock representing a catch statement with an Exception filter and a reference to the caught Exception object.
Public method Static member Catch(Type, Expression, Expression) Creates a CatchBlock representing a catch statement with an Exception filter but no reference to the caught Exception object.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft