Bewerken

Delen via


SymbolResult.GetValueForOption Method

Definition

Overloads

GetValueForOption(Option)

Gets the parsed or default value for the specified option.

GetValueForOption<T>(Option<T>)

Gets the parsed or default value for the specified option.

GetValueForOption(Option)

Gets the parsed or default value for the specified 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

Parameters

option
Option

The option for which to get a value.

Returns

The parsed value or a configured default.

Applies to

GetValueForOption<T>(Option<T>)

Gets the parsed or default value for the specified option.

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

Type Parameters

T

Parameters

option
Option<T>

The option for which to get a value.

Returns

T

The parsed value or a configured default.

Applies to