ParseResult.GetValueForOption 方法

定义

重载

GetValueForOption(Option)

获取指定选项的已分析值或默认值。

GetValueForOption<T>(Option<T>)

获取指定选项的已分析值或默认值。

GetValueForOption(Option)

获取指定选项的已分析值或默认值。

public:
 System::Object ^ GetValueForOption(System::CommandLine::Option ^ option);
public object? GetValueForOption (System.CommandLine.Option option);
member this.GetValueForOption : System.CommandLine.Option -> obj
Public Function GetValueForOption (option As Option) As Object

参数

option
Option

要获取其值的选项。

返回

分析的值或配置的默认值。

适用于

GetValueForOption<T>(Option<T>)

获取指定选项的已分析值或默认值。

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

类型参数

T

参数

option
Option<T>

要获取其值的选项。

返回

T

分析的值或配置的默认值。

适用于