다음을 통해 공유


CommandExtensions.Parse 메서드

정의

오버로드

Parse(Command, String)

지정된 명령을 사용하여 명령줄 문자열 값을 구문 분석합니다.

Parse(Command, String[])

지정된 명령을 사용하여 배열 문자열을 구문 분석합니다.

Parse(Command, String)

지정된 명령을 사용하여 명령줄 문자열 값을 구문 분석합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Command ^ command, System::String ^ commandLine);
public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Command command, string commandLine);
static member Parse : System.CommandLine.Command * string -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (command As Command, commandLine As String) As ParseResult

매개 변수

command
Command

명령줄 입력을 구문 분석하는 데 사용할 명령입니다.

commandLine
String

구문 분석할 명령줄 문자열로, 터미널에 입력할 수 있는 것과 동일한 공백과 따옴표를 포함할 수 있습니다.

반환

구문 분석 작업의 결과를 설명하는 구문 분석 결과입니다.

설명

명령줄 문자열 입력은 명령줄에 전달된 것처럼 토큰으로 분할됩니다.

적용 대상

Parse(Command, String[])

지정된 명령을 사용하여 배열 문자열을 구문 분석합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Command ^ command, ... cli::array <System::String ^> ^ args);
public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Command command, params string[] args);
static member Parse : System.CommandLine.Command * string[] -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (command As Command, ParamArray args As String()) As ParseResult

매개 변수

command
Command

명령줄 입력을 구문 분석하는 데 사용할 명령입니다.

args
String[]

구문 분석할 문자열 인수입니다.

반환

구문 분석 작업의 결과를 설명하는 구문 분석 결과입니다.

적용 대상