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.

  Name Description
Public method Static member Supported by Portable Class Library 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 Supported by Portable Class Library Catch(Type, Expression) Creates a CatchBlock representing a catch statement.
Public method Static member Supported by Portable Class Library 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 Supported by Portable Class Library 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
Show:
© 2015 Microsoft