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

Definition

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

Parameters

target
LabelTarget LabelTarget LabelTarget

The LabelTarget that the GotoExpression will jump to.

value
Expression Expression 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.

Returns

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.

Applies to