Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) Méthode

Définition

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

target
LabelTarget

GotoExpression La LabelTarget volonté de sauter.

value
Expression

Valeur qui sera transmise à l’étiquette associée lors du saut.

type
Type

Pour Type définir la Type propriété égale à.

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.

S’applique à