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