Expression.MakeCatchBlock Méthode

Définition

Crée une CatchBlock instruction catch représentant les éléments spécifiés.

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

Paramètres

type
Type

La Type gestion de Exception ce CatchBlock problème sera assurée.

variable
ParameterExpression

Représentant ParameterExpression une référence à l’objet Exception intercepté par ce gestionnaire.

body
Expression

Corps de l’instruction catch.

filter
Expression

Corps du Exception filtre.

Retours

Le fichier créé CatchBlock.

Remarques

type doit être non null et correspondre au type de variable (s’il est fourni).

S’applique à