Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Crea un oggetto GotoExpression che rappresenta un passaggio dell'oggetto GotoExpressionKind specificato. Anche il valore passato all'etichetta al momento del passaggio può essere specificato.
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
Parametri
- kind
- GotoExpressionKind
Oggetto GotoExpressionKind dell'oggetto GotoExpression.
- target
- LabelTarget
Oggetto LabelTarget a cui passerà l'oggetto GotoExpression.
- value
- Expression
Valore che al momento del passaggio verrà passato all'etichetta associata.
Restituisce
Oggetto GotoExpression con la proprietà Kind impostata su kind, la proprietà Target impostata su target, la proprietà Type impostata su type e con value da passare all'etichetta di destinazione al momento del passaggio.