Bagikan melalui


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

Definisi

GotoExpression Membuat lompatan yang mewakili lompatan yang ditentukanGotoExpressionKind. Nilai yang diteruskan ke label saat melompat juga dapat ditentukan.

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

Parameter

target
LabelTarget

Yang LabelTargetGotoExpression akan melompat ke.

value
Expression

Nilai yang akan diteruskan ke label terkait saat melompat.

type
Type

Untuk Type mengatur properti sama Type dengan.

Mengembalikan

GotoExpression dengan sama dengan kindKind , Target properti diatur ke target, Type properti diatur ke type, dan value akan diteruskan ke label target saat melompat.

Berlaku untuk