共用方式為


Checked.( ~- )<^T> 函式 (F#)

多載一元負運算 (檢查溢位)。

**命名空間/模組路徑:**Microsoft.FSharp.Core.Operators.Checked

組件:FSharp.Core (在 FSharp.Core.dll 中)

// Signature:
( ~- ) : ^T -> ^T (requires ^T with static member op_UnaryNegation)

// Usage:
- value

參數

  • value
    型別:^T

    輸入值。

傳回值

相反的值。

平台

Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2

版本資訊

F# 核心程式庫版本

支援版本:2.0, 4.0,可攜式執行檔 (PE)。

請參閱

參考

Operators.Checked 模組 (F#)

Core.Operators 模組 (F#)