Operators.NegateObject(Object) 方法

定義

代表 Visual Basic 的一元減去(-)運算子。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static System::Object ^ NegateObject(System::Object ^ Operand);
public static object NegateObject(object Operand);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The object types cannot be statically analyzed so their operators may be trimmed")]
public static object? NegateObject(object? Operand);
public static object? NegateObject(object? Operand);
static member NegateObject : obj -> obj
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The object types cannot be statically analyzed so their operators may be trimmed")>]
static member NegateObject : obj -> obj
Public Shared Function NegateObject (Operand As Object) As Object

參數

Operand
Object

Required. 任何數字表達式。

傳回

Operand負值。

屬性

備註

這門課支援 Visual Basic 編譯器,並非直接從你的程式碼中使用。

適用於

另請參閱