SymbolResult.GetValueForOption Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.