Expression.Catch 메서드

정의

catch 문을 나타내는 CatchBlock을 만듭니다.

오버로드

Catch(ParameterExpression, Expression)

처리기 본문에 사용하기 위해 catch된 CatchBlock 개체에 대한 참조가 포함된 catch 문을 나타내는 Exception을 만듭니다.

Catch(Type, Expression)

catch 문을 나타내는 CatchBlock을 만듭니다.

Catch(ParameterExpression, Expression, Expression)

CatchBlock 필터와 catch된 Exception 개체에 대한 참조가 포함된 catch 문을 나타내는 Exception을 만듭니다.

Catch(Type, Expression, Expression)

CatchBlock 필터는 있지만 catch된 Exception 개체에 대한 참조는 없는 catch 문을 나타내는 Exception을 만듭니다.

Catch(ParameterExpression, Expression)

Source:
CatchBlock.cs
Source:
CatchBlock.cs
Source:
CatchBlock.cs

처리기 본문에 사용하기 위해 catch된 CatchBlock 개체에 대한 참조가 포함된 catch 문을 나타내는 Exception을 만듭니다.

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

매개 변수

variable
ParameterExpression

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

body
Expression

catch 문의 본문입니다.

반환

만든 CatchBlock입니다.

적용 대상

Catch(Type, Expression)

Source:
CatchBlock.cs
Source:
CatchBlock.cs
Source:
CatchBlock.cs

catch 문을 나타내는 CatchBlock을 만듭니다.

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

매개 변수

type
Type

Type이 처리할 ExceptionCatchBlock입니다.

body
Expression

catch 문의 본문입니다.

반환

만든 CatchBlock입니다.

설명

catch할 의 ExceptionType 지정할 수 있지만 개체에 Exception 대한 참조는 에서 CatchBlock사용할 수 없습니다.

적용 대상

Catch(ParameterExpression, Expression, Expression)

Source:
CatchBlock.cs
Source:
CatchBlock.cs
Source:
CatchBlock.cs

CatchBlock 필터와 catch된 Exception 개체에 대한 참조가 포함된 catch 문을 나타내는 Exception을 만듭니다.

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

매개 변수

variable
ParameterExpression

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

body
Expression

catch 문의 본문입니다.

filter
Expression

Exception 필터의 본문입니다.

반환

만든 CatchBlock입니다.

적용 대상

Catch(Type, Expression, Expression)

Source:
CatchBlock.cs
Source:
CatchBlock.cs
Source:
CatchBlock.cs

CatchBlock 필터는 있지만 catch된 Exception 개체에 대한 참조는 없는 catch 문을 나타내는 Exception을 만듭니다.

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

매개 변수

type
Type

Type이 처리할 ExceptionCatchBlock입니다.

body
Expression

catch 문의 본문입니다.

filter
Expression

Exception 필터의 본문입니다.

반환

만든 CatchBlock입니다.

적용 대상