Expression.MakeCatchBlock Método

Definição

Cria uma CatchBlock representação de uma instrução catch com os elementos especificados.

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

Parâmetros

type
Type

A Type parte Exception disto CatchBlock vai resolver.

variable
ParameterExpression

A ParameterExpression representa uma referência ao Exception objeto apanhado por este manipulador.

body
Expression

O corpo da frase de captura.

filter
Expression

O corpo do Exception filtro.

Devoluções

O criou CatchBlock.

Observações

type deve ser não nulo e corresponder ao tipo de variable (se for fornecido).

Aplica-se a