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);
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
GotoExpression La LabelTarget volonté de sauter.
- value
- Expression
Valeur qui sera transmise à l’étiquette associée lors du saut.
Retours
Égal GotoExpression à kind, la Target propriété définie targetsur , la Type propriété définie typesur et value à passer à l’étiquette cible Kind lors du saut.