Core.MeasureAttribute 類別 (F#)
將這個屬性加入至型別,會導致該型別被解譯為測量單位。 這只能在相當受限的情況下使用。
命名空間/模組路徑: Microsoft.FSharp.Core
組件:FSharp.Core (在 FSharp.Core.dll 中)
[<AttributeUsage(16388, AllowMultiple = false)>]
[<Sealed>]
type MeasureAttribute =
class
new MeasureAttribute : unit -> MeasureAttribute
end
備註
您也可以使用簡短形式的名稱 Measure
建構函式
成員 |
說明 |
---|---|
建立屬性的執行個體。 |
平台
Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2
版本資訊
F# 執行階段
支援版本:2.0、4.0
Silverlight
支援版本:3