共用方式為


IntPtr.IUnaryNegationOperators<IntPtr,IntPtr>.UnaryNegation 運算子

定義

計算值的一元負數。

 static IntPtr System.Numerics.IUnaryNegationOperators<nint,nint>.operator -(IntPtr value) = System::Numerics::IUnaryNegationOperators<IntPtr, IntPtr>::op_UnaryNegation;
static IntPtr IUnaryNegationOperators<IntPtr,IntPtr>.operator - (IntPtr value);
static member ( ~- ) : nativeint -> nativeint
 Shared Operator - (value As IntPtr) As IntPtr Implements IUnaryNegationOperators(Of IntPtr, IntPtr).op_UnaryNegation

參數

value
IntPtr

nativeint

要計算一元負數的值。

傳回

IntPtr

nativeint

value 一元負數。

實作

適用於