共用方式為


Expression.Catch Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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.

Overload List

  Name Description
Public methodStatic 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 methodStatic member Catch(Type, Expression) Creates a CatchBlock representing a catch statement.
Public methodStatic 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 methodStatic 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