Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) Methode

Definition

Erstellt eine GotoExpression, die einen Sprung der angegebenen GotoExpressionKind darstellt. Der beim Springen an die Bezeichnung übergebene Wert kann ebenfalls angegeben werden.

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

Parameter

target
LabelTarget

Das LabelTarget, zu dem GotoExpression springt.

value
Expression

Der Wert, der beim Springen an die zugeordnete Bezeichnung übergeben wird.

type
Type

Ein Type, auf den die Type-Eigenschaft festgelegt werden soll.

Gibt zurück

Eine GotoExpression, bei der Kind gleich kind ist, die Target-Eigenschaft auf target festgelegt ist, die Type-Eigenschaft auf type festgelegt ist und beim Springen value an die Zielbezeichnung übergeben wird.

Gilt für: