Język

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 skokach.

type
Type

Wartość , Type aby ustawić właściwość równą Type .

Zwraca

Właściwość GotoExpression o Kind wartości równej kindTarget, właściwość ustawiona na target, Type właściwość ustawiona na type, i value ma zostać przekazana do etykiety docelowej po skoku.

Dotyczy