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

이 처리기가 catch한 ParameterExpression 개체에 대한 참조를 나타내는 Exception입니다.

body
Expression

catch 문의 본문입니다.

filter
Expression

Exception 필터의 본문입니다.

반환

만든 CatchBlock입니다.

설명

type 는 null이 아니어야 하며 형식 variable 과 일치해야 합니다(제공된 경우).

적용 대상