Expression.Catch Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a CatchBlock representing a catch statement.

Namespace:   System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCatch(ParameterExpression, Expression)

Creates a CatchBlock representing a catch statement with a reference to the caught Exception object for use in the handler body.

System_CAPS_pubmethodSystem_CAPS_staticCatch(ParameterExpression, Expression, Expression)

Creates a CatchBlock representing a catch statement with an Exception filter and a reference to the caught Exception object.

System_CAPS_pubmethodSystem_CAPS_staticCatch(Type, Expression)

Creates a CatchBlock representing a catch statement.

System_CAPS_pubmethodSystem_CAPS_staticCatch(Type, Expression, Expression)

Creates a CatchBlock representing a catch statement with an Exception filter but no reference to the caught Exception object.

Return to top
Show: