Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) Метод

Определение

Создает выражение GotoExpression, представляющее переход указанного типа GotoExpressionKind. Также можно указать значение, передаваемое метке при переходе.

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

Параметры

target
LabelTarget

Объект LabelTarget, на который будет выполнен переход по GotoExpression.

value
Expression

Значение, передаваемое связанной метке при переходе.

type
Type

Объект Type, который следует задать в качестве значения свойства Type.

Возвращаемое значение

Выражение GotoExpression, свойство Kind которого имеет значение kind, свойство Targettarget, свойство Typetype, а при переходе целевой метке передается значение value.

Применяется к