忽略与交互式环境相关的参数并用最后一个脚本文件的名称(如果有)替换第一个参数后得到的命令行参数。
命名空间/模块路径: 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
参数
CommandLineArgs
类型:string Core.string 类型缩写 (F#)[]命令行自变量数组。
备注
例如,命令行 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