Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Cria um GotoExpression que representa um salto do especificado GotoExpressionKind. O valor transmitido ao rótulo ao saltar também pode ser especificado.
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
Parâmetros
- kind
- GotoExpressionKind
- target
- LabelTarget
O LabelTarget que vai GotoExpression saltar para.
- value
- Expression
O valor que será passado para a etiqueta associada ao saltar.
Devoluções
A com igual a GotoExpression, a Kind propriedade definida para kind, a Target propriedade definida para target, e Type para ser passada para a etiqueta de destino ao saltar.typevalue