共用方式為


InteractiveSession.CommandLineArgs 屬性 (F#)

此命令列引數是忽略與互動式環境相關的引數,並以最後一個指令碼檔的名稱 (如果有的話) 取代第一個引數後的命令列引數。

**命名空間/模組路徑:**Microsoft.FSharp.Compiler.Interactive

**組件:**FSharp.Compiler.Interactive.Settings (在 FSharp.Compiler.Interactive.Settings.dll 中)

// Signatures:
member this.CommandLineArgs :  string []
member this.CommandLineArgs : string [] with set :  string []

// Usage:
interactiveSession.CommandLineArgs
interactiveSession.CommandLineArgs <- commandLineArgs

參數

備註

例如,命令列fsi.exe test1.fs test2.fs -- hello goodbye 會指定參數test2.fs,hello,goodbye. 這個值通常會與 GetCommandLineArgs 傳回的值不同。

平台

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

Silverlight

支援版本:3

請參閱

參考

Interactive.InteractiveSession 類別 (F#)

Microsoft.FSharp.Compiler.Interactive 命名空間 (F#)