Expression.MakeCatchBlock Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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).