CommandExtensions.Invoke 메서드

정의

오버로드

Invoke(Command, String, IConsole)

명령을 구문 분석하고 호출합니다.

Invoke(Command, String[], IConsole)

명령을 구문 분석하고 호출합니다.

Invoke(Command, String, IConsole)

명령을 구문 분석하고 호출합니다.

public static int Invoke (this System.CommandLine.Command command, string commandLine, System.CommandLine.IConsole? console = default);
static member Invoke : System.CommandLine.Command * string * System.CommandLine.IConsole -> int
<Extension()>
Public Function Invoke (command As Command, commandLine As String, Optional console As IConsole = Nothing) As Integer

매개 변수

command
Command

호출할 명령입니다.

commandLine
String

구문 분석할 명령줄입니다.

console
IConsole

호출 중에 출력이 기록되는 콘솔입니다.

반환

호출에 대한 종료 코드입니다.

설명

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

적용 대상

Invoke(Command, String[], IConsole)

명령을 구문 분석하고 호출합니다.

public static int Invoke (this System.CommandLine.Command command, string[] args, System.CommandLine.IConsole? console = default);
static member Invoke : System.CommandLine.Command * string[] * System.CommandLine.IConsole -> int
<Extension()>
Public Function Invoke (command As Command, args As String(), Optional console As IConsole = Nothing) As Integer

매개 변수

command
Command

호출할 명령입니다.

args
String[]

구문 분석할 인수입니다.

console
IConsole

호출 중에 출력이 기록되는 콘솔입니다.

반환

호출에 대한 종료 코드입니다.

적용 대상