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

Definition

Erstellt einen GotoExpression Sprung der angegebenen GotoExpressionKind. Der wert, der beim Springen an die Beschriftung übergeben wird, kann auch 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);
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

Dies LabelTargetGotoExpression springt zu.

value
Expression

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

type
Type

Eine Type , die die Type Eigenschaft gleich festlegen soll.

Gibt zurück

A GotoExpression with Kind equal to kind, the Target property set to target, the Type property set to type, and value to be passed to the target label upon jumping.

Gilt für: