Core.OptionalArgumentAttribute 類別 (F#)
對於所有選擇性引數,都會自動加入這個屬性。
命名空間/模組路徑: Microsoft.FSharp.Core
組件:FSharp.Core (在 FSharp.Core.dll 中)
[<AttributeUsage(2048, AllowMultiple = false)>]
[<Sealed>]
type OptionalArgumentAttribute =
class
new OptionalArgumentAttribute : unit -> OptionalArgumentAttribute
end
備註
您可以套用這個屬性是以選擇性參數選項類型的參數。 這是相當於套用了嗎? 要在參數清單中的參數名稱。 選擇性參數不應該會跟著非選擇性參數在參數清單中。
您也可以使用簡短形式的名稱 OptionalArgument
建構函式
成員 |
說明 |
---|---|
建立屬性的執行個體 |
平台
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