Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) 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 un représentant un GotoExpression saut du fichier spécifié GotoExpressionKind. La valeur passée à l’étiquette lors du saut peut également être spécifiée.
public:
static System::Linq::Expressions::GotoExpression ^ MakeGoto(System::Linq::Expressions::GotoExpressionKind kind, System::Linq::Expressions::LabelTarget ^ target, System::Linq::Expressions::Expression ^ value, Type ^ type);
public static System.Linq.Expressions.GotoExpression MakeGoto(System.Linq.Expressions.GotoExpressionKind kind, System.Linq.Expressions.LabelTarget target, System.Linq.Expressions.Expression value, Type type);
public static System.Linq.Expressions.GotoExpression MakeGoto(System.Linq.Expressions.GotoExpressionKind kind, System.Linq.Expressions.LabelTarget target, System.Linq.Expressions.Expression? value, Type type);
static member MakeGoto : System.Linq.Expressions.GotoExpressionKind * System.Linq.Expressions.LabelTarget * System.Linq.Expressions.Expression * Type -> System.Linq.Expressions.GotoExpression
Public Shared Function MakeGoto (kind As GotoExpressionKind, target As LabelTarget, value As Expression, type As Type) As GotoExpression
Paramètres
- kind
- GotoExpressionKind
La GotoExpressionKind du GotoExpression.
- target
- LabelTarget
LabelTarget La GotoExpression volonté de sauter.
- value
- Expression
Valeur qui sera transmise à l’étiquette associée lors du saut.
Retours
Égal GotoExpression à Kind, la kind propriété définie Targetsur , la target propriété définie Typesur et type à passer à l’étiquette cible value lors du saut.