# Complex.UnaryNegation(Complex)Complex.UnaryNegation(Complex)Complex.UnaryNegation(Complex)Complex.UnaryNegation(Complex) Operator

## 定義

``````public:
static System::Numerics::Complex operator -(System::Numerics::Complex value);``````
``public static System.Numerics.Complex operator - (System.Numerics.Complex value);``
``static member ( ~- ) : System.Numerics.Complex -> System.Numerics.Complex``
``Public Shared Operator - (value As Complex) As Complex``

#### パラメーター

value
Complex Complex Complex Complex

#### 戻り値

`value` パラメーターの Real 部および Imaginary 部に -1 を乗算した結果。The result of the Real and Imaginary components of the `value` parameter multiplied by -1.

## 注釈

メソッドUnaryNegationは、複素数の単項否定 (加法逆) 演算子の演算を定義します。The UnaryNegation method defines the operation of the unary negation (additive inverse) operator for complex numbers. 次のようなコードが有効になります。It enables code such as the following:

``````Complex c1 = new Complex(1.7, 3.9);
Complex c2 = -c1;
``````
``````Dim c1 As New Complex(1.7, 3.9)
Dim c2 As Complex = -c1
``````

この演算子の同等の方法は次のようになります。Complex.Negate(Complex)The equivalent method for this operator is Complex.Negate(Complex)