Expression.MakeCatchBlock Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Cria uma CatchBlock instrução catch representando 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);
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
Exception CatchBlock Isso Type manipulará.
- variable
- ParameterExpression
Uma ParameterExpression referência ao Exception objeto capturado por esse manipulador.
- body
- Expression
O corpo da instrução catch.
- filter
- Expression
O corpo do Exception filtro.
Retornos
O .CatchBlock
Comentários
type deve ser não nulo e corresponder ao tipo de variable (se for fornecido).