Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) Метод
Определение
Создает выражение GotoExpression, представляющее переход указанного типа GotoExpressionKind.Creates a GotoExpression representing a jump of the specified GotoExpressionKind. Также можно указать значение, передаваемое метке при переходе.The value passed to the label upon jumping can also be specified.
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
Параметры
- kind
- GotoExpressionKind
GotoExpressionKind выражения GotoExpression.The GotoExpressionKind of the GotoExpression.
- target
- LabelTarget
Объект LabelTarget, на который будет выполнен переход по GotoExpression.The LabelTarget that the GotoExpression will jump to.
- value
- Expression
Значение, передаваемое связанной метке при переходе.The value that will be passed to the associated label upon jumping.
- type
- Type
Объект Type, который следует задать в качестве значения свойства Type.An Type to set the Type property equal to.
Возвраты
Выражение GotoExpression, свойство Kind которого имеет значение kind
, свойство Target — target
, свойство Type — type
, а при переходе целевой метке передается значение value
.A GotoExpression with Kind equal to kind
, the Target property set to target
, the Type property set to type
, and value
to be passed to the target label upon jumping.