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
The parsed value or a configured default.
Applies to
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk