SymbolResult.GetValue 메서드

정의

오버로드

Name Description
GetValue<T>(Argument<T>)

지정된 인수의 구문 분석된 값 또는 기본값을 가져옵니다.

GetValue<T>(Option<T>)

지정된 옵션의 구문 분석된 값 또는 기본값을 가져옵니다.

GetValue<T>(String)

구문 분석 트리에서 지정된 이름을 가진 기호의 값을 가져옵니다.

GetValue<T>(Argument<T>)

Source:
SymbolResult.cs
Source:
SymbolResult.cs

지정된 인수의 구문 분석된 값 또는 기본값을 가져옵니다.

public:
generic <typename T>
 T GetValue(System::CommandLine::Argument<T> ^ argument);
public T? GetValue<T>(System.CommandLine.Argument<T> argument);
member this.GetValue : System.CommandLine.Argument<'T> -> 'T
Public Function GetValue(Of T) (argument As Argument(Of T)) As T

형식 매개 변수

T

매개 변수

argument
Argument<T>

값을 가져올 인수입니다.

반품

T

구문 분석된 값 또는 구성된 기본값입니다.

적용 대상

GetValue<T>(Option<T>)

Source:
SymbolResult.cs
Source:
SymbolResult.cs

지정된 옵션의 구문 분석된 값 또는 기본값을 가져옵니다.

public:
generic <typename T>
 T GetValue(System::CommandLine::Option<T> ^ option);
public T? GetValue<T>(System.CommandLine.Option<T> option);
member this.GetValue : System.CommandLine.Option<'T> -> 'T
Public Function GetValue(Of T) (option As Option(Of T)) As T

형식 매개 변수

T

매개 변수

option
Option<T>

값을 가져올 옵션입니다.

반품

T

구문 분석된 값 또는 구성된 기본값입니다.

적용 대상

GetValue<T>(String)

Source:
SymbolResult.cs
Source:
SymbolResult.cs

구문 분석 트리에서 지정된 이름을 가진 기호의 값을 가져옵니다.

public:
generic <typename T>
 T GetValue(System::String ^ name);
public T? GetValue<T>(string name);
member this.GetValue : string -> 'T
Public Function GetValue(Of T) (name As String) As T

형식 매개 변수

T

매개 변수

name
String

결과를 찾을 기호의 이름입니다.

반품

T

인수가 파서와 일치했거나 기본값이 있는 경우의 인수 결과입니다. 그렇지 않으면 . null

적용 대상