Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Crea un objeto GotoExpression que representa un salto del especificado GotoExpressionKind. También se puede especificar el valor pasado a la etiqueta al saltar.
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
Parámetros
- kind
- GotoExpressionKind
El GotoExpressionKind del GotoExpression.
- target
- LabelTarget
El LabelTarget al que GotoExpression saltará.
- value
- Expression
Valor que se pasará a la etiqueta asociada al saltar.
Devoluciones
con GotoExpressionKind igual a kind, la Target propiedad establecida targeten , la Type propiedad establecida typeen y value que se pasará a la etiqueta de destino al saltar.