Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) Método

Definición

Crea un objeto GotoExpression que representa un salto del objeto GotoExpressionKind especificado. Además se puede especificar el valor que se pasa a la etiqueta cuando se produce el salto.

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

target
LabelTarget

LabelTarget al que saltará GotoExpression.

value
Expression

Valor que se va a pasar a la etiqueta asociada cuando se produzca el salto.

type
Type

Objeto Type en el que se va a establecer la propiedad Type.

Devoluciones

GotoExpression con Kind igual a kind, la propiedad Target establecida en target, la propiedad Type establecida en type y un value que se pasará a la etiqueta de destino al saltar.

Se aplica a