OptionResultExtensions.GetValueOrDefault Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Naam | Description |
|---|---|
| GetValueOrDefault(OptionResult) | |
| GetValueOrDefault<T>(OptionResult) |
GetValueOrDefault(OptionResult)
public:
[System::Runtime::CompilerServices::Extension]
static System::Object ^ GetValueOrDefault(System::CommandLine::OptionResult ^ optionResult);
public static object GetValueOrDefault(this System.CommandLine.OptionResult optionResult);
static member GetValueOrDefault : System.CommandLine.OptionResult -> obj
<Extension()>
Public Function GetValueOrDefault (optionResult As OptionResult) As Object
Parameters
- optionResult
- OptionResult
Retouren
Van toepassing op
GetValueOrDefault<T>(OptionResult)
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetValueOrDefault(System::CommandLine::OptionResult ^ optionResult);
public static T GetValueOrDefault<T>(this System.CommandLine.OptionResult optionResult);
static member GetValueOrDefault : System.CommandLine.OptionResult -> 'T
<Extension()>
Public Function GetValueOrDefault(Of T) (optionResult As OptionResult) As T
Type parameters
- T
Parameters
- optionResult
- OptionResult