Partilhar via


Propriedade InteractiveSession.CommandLineArgs (F#)

Os argumentos de linha de comando após ignorando os argumentos relevantes para o ambiente interativo e substituindo o primeiro argumento com o nome do último arquivo de script, se houver.

Caminho do namespace/módulo: Microsoft.FSharp.Compiler.Interactive

Montagem: FSharp.Compiler.Interactive.Settings (em FSharp.Compiler.Interactive.Settings.dll)

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

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

Parâmetros

Comentários

Por exemplo, a linha de comando fsi.exe test1.fs test2.fs -- hello goodbye dará argumentos test2.fs, hello, goodbye. Este valor será normalmente diferente daqueles retornado por GetCommandLineArgs.

Plataformas

O Windows 7, SP2 do Windows Vista, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Informações sobre versão

O tempo de execução F#

Tem suporte no: 2.0, 4

Silverlight

Tem suporte no: 3

Consulte também

Referência

Classe Interactive.InteractiveSession (F#)

Namespace Microsoft.FSharp.Compiler.Interactive (F#)