CommandLineParser.Parse 方法

定义

分析命令行。

public:
 Microsoft::CodeAnalysis::CommandLineArguments ^ Parse(System::Collections::Generic::IEnumerable<System::String ^> ^ args, System::String ^ baseDirectory, System::String ^ sdkDirectory, System::String ^ additionalReferenceDirectories);
public Microsoft.CodeAnalysis.CommandLineArguments Parse (System.Collections.Generic.IEnumerable<string> args, string baseDirectory, string sdkDirectory, string additionalReferenceDirectories);
public Microsoft.CodeAnalysis.CommandLineArguments Parse (System.Collections.Generic.IEnumerable<string> args, string baseDirectory, string? sdkDirectory, string? additionalReferenceDirectories);
public Microsoft.CodeAnalysis.CommandLineArguments Parse (System.Collections.Generic.IEnumerable<string> args, string baseDirectory, string? sdkDirectory, string additionalReferenceDirectories);
member this.Parse : seq<string> * string * string * string -> Microsoft.CodeAnalysis.CommandLineArguments
Public Function Parse (args As IEnumerable(Of String), baseDirectory As String, sdkDirectory As String, additionalReferenceDirectories As String) As CommandLineArguments

参数

args
IEnumerable<String>

表示命令行参数的字符串集合。

baseDirectory
String

用于限定文件位置的基目录。

sdkDirectory
String

要搜索 mscorlib 的目录;如果不可用,则为 null。

additionalReferenceDirectories
String

表示其他引用路径的字符串。

返回

一个 CommandLineArguments 表示已分析命令行的对象。

适用于