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

Definition

Skapar ett GotoExpression som representerar ett hopp av angivet GotoExpressionKind. Det värde som skickas till etiketten vid hoppning kan också anges.

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

Parametrar

target
LabelTarget

Det LabelTarget som viljan GotoExpression hoppar till.

value
Expression

Det värde som skickas till den associerade etiketten när du hoppar.

type
Type

En Type som egenskapen Type ska vara lika med.

Returer

A GotoExpression med lika kindmed Kind , Target egenskapen inställd på target, Type egenskapen inställd på type, och value som ska skickas till måletiketten när du hoppar.

Gäller för