# Expression.OnesComplement 方法

## 多載

 OnesComplement(Expression) 傳回表示 1 補數的運算式。Returns the expression representing the ones complement. OnesComplement(Expression, MethodInfo) 傳回表示 1 補數的運算式。Returns the expression representing the ones complement.

## OnesComplement(Expression)

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

expression
Expression

An Expression.

#### 傳回

UnaryExpression

UnaryExpression 的執行個體。An instance of UnaryExpression.

## OnesComplement(Expression, MethodInfo)

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

expression
Expression

An Expression.

method
MethodInfo

#### 傳回

UnaryExpression

UnaryExpression 的執行個體。An instance of UnaryExpression.