Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) Metoda

Definicja

GotoExpression Tworzy reprezentujący skok określonego GotoExpressionKindelementu . Można również określić wartość przekazaną do etykiety po skokach.

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

Parametry

target
LabelTarget

To LabelTarget , do którego GotoExpression będzie skakać.

value
Expression

Wartość, która zostanie przekazana do skojarzonej etykiety po skoku.

type
Type

Element Type do ustawiania Type właściwości równej.

Zwraca

Element GotoExpression o Kind wartości równej Targetkind, właściwość ustawiona na target, Type właściwość ustawiona na type, i value do etykiety docelowej jest przekazywana po skoku.

Dotyczy