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

Definizione

Crea un oggetto GotoExpression che rappresenta un salto dell'oggetto specificato GotoExpressionKind. È anche possibile specificare il valore passato all'etichetta al passaggio.

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

Parametri

target
LabelTarget

Oggetto LabelTarget a cui passerà.GotoExpression

value
Expression

Valore che verrà passato all'etichetta associata al passaggio.

type
Type

Oggetto Type su cui impostare la Type proprietà uguale.

Valori restituiti

Oggetto GotoExpression con Kind uguale a kind, la Target proprietà impostata su target, la Type proprietà impostata su typee value da passare all'etichetta di destinazione al momento del salto.

Si applica a