Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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
- kind
- GotoExpressionKind
Die GotoExpressionKind des GotoExpression.
- target
- LabelTarget
Dies LabelTargetGotoExpression springt zu.
- value
- Expression
Der Wert, der beim Springen an die zugeordnete Beschriftung übergeben wird.
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.