Expression.MakeCatchBlock メソッド

定義

指定した要素を持つ catch ステートメントを表す CatchBlock を作成します。

public:
 static System::Linq::Expressions::CatchBlock ^ MakeCatchBlock(Type ^ type, System::Linq::Expressions::ParameterExpression ^ variable, System::Linq::Expressions::Expression ^ body, System::Linq::Expressions::Expression ^ filter);
public static System.Linq.Expressions.CatchBlock MakeCatchBlock(Type type, System.Linq.Expressions.ParameterExpression variable, System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression filter);
public static System.Linq.Expressions.CatchBlock MakeCatchBlock(Type type, System.Linq.Expressions.ParameterExpression? variable, System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression? filter);
static member MakeCatchBlock : Type * System.Linq.Expressions.ParameterExpression * System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.CatchBlock
Public Shared Function MakeCatchBlock (type As Type, variable As ParameterExpression, body As Expression, filter As Expression) As CatchBlock

パラメーター

type
Type

このTypeが処理ExceptionCatchBlock

variable
ParameterExpression

このハンドラーによってキャッチされたParameterExpression オブジェクトへの参照を表すException

body
Expression

catch ステートメントの本文。

filter
Expression

Exception フィルターの本文。

返品

作成された CatchBlock

注釈

type は null 以外で、 variable の型と一致する必要があります (指定されている場合)。

適用対象