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

Definición

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

target
LabelTarget

El LabelTarget al que GotoExpression saltará.

value
Expression

Valor que se pasará a la etiqueta asociada al saltar.

type
Type

que Type se va a establecer la Type propiedad igual a.

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.

Se aplica a