Expression.PreIncrementAssign 方法

定義

建立 UnaryExpression,可讓運算式遞增 1,並將結果指派回運算式。Creates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.

多載

PreIncrementAssign(Expression)

建立 UnaryExpression,可讓運算式遞增 1,並將結果指派回運算式。Creates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.

PreIncrementAssign(Expression, MethodInfo)

建立 UnaryExpression,可讓運算式遞增 1,並將結果指派回運算式。Creates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.

PreIncrementAssign(Expression)

建立 UnaryExpression,可讓運算式遞增 1,並將結果指派回運算式。Creates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.

public:
 static System::Linq::Expressions::UnaryExpression ^ PreIncrementAssign(System::Linq::Expressions::Expression ^ expression);
public static System.Linq.Expressions.UnaryExpression PreIncrementAssign (System.Linq.Expressions.Expression expression);
static member PreIncrementAssign : System.Linq.Expressions.Expression -> System.Linq.Expressions.UnaryExpression
Public Shared Function PreIncrementAssign (expression As Expression) As UnaryExpression

參數

expression
Expression

要套用上述作業的 ExpressionAn Expression to apply the operations on.

傳回

UnaryExpression

表示結果運算式的 UnaryExpressionA UnaryExpression that represents the resultant expression.

適用於

PreIncrementAssign(Expression, MethodInfo)

建立 UnaryExpression,可讓運算式遞增 1,並將結果指派回運算式。Creates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.

public:
 static System::Linq::Expressions::UnaryExpression ^ PreIncrementAssign(System::Linq::Expressions::Expression ^ expression, System::Reflection::MethodInfo ^ method);
public static System.Linq.Expressions.UnaryExpression PreIncrementAssign (System.Linq.Expressions.Expression expression, System.Reflection.MethodInfo method);
public static System.Linq.Expressions.UnaryExpression PreIncrementAssign (System.Linq.Expressions.Expression expression, System.Reflection.MethodInfo? method);
static member PreIncrementAssign : System.Linq.Expressions.Expression * System.Reflection.MethodInfo -> System.Linq.Expressions.UnaryExpression
Public Shared Function PreIncrementAssign (expression As Expression, method As MethodInfo) As UnaryExpression

參數

expression
Expression

要套用上述作業的 ExpressionAn Expression to apply the operations on.

method
MethodInfo

表示實作方法的 MethodInfoA MethodInfo that represents the implementing method.

傳回

UnaryExpression

表示結果運算式的 UnaryExpressionA UnaryExpression that represents the resultant expression.

適用於