CommandLineParser.Parse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
剖析命令列。
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物件,表示已剖析的命令列。