CommandResultExtensions.GetValueOrDefault 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
| Name | Description |
|---|---|
| GetValueOrDefault(CommandResult) |
Obsolete.
|
| GetValueOrDefault<T>(CommandResult) |
Obsolete.
|
GetValueOrDefault(CommandResult)
Caution
Use GetArgumentValueOrDefault instead. This method will be removed in a future version.
public:
[System::Runtime::CompilerServices::Extension]
static System::Object ^ GetValueOrDefault(System::CommandLine::CommandResult ^ commandResult);
[System.Obsolete("Use GetArgumentValueOrDefault instead. This method will be removed in a future version.")]
public static object GetValueOrDefault(this System.CommandLine.CommandResult commandResult);
[<System.Obsolete("Use GetArgumentValueOrDefault instead. This method will be removed in a future version.")>]
static member GetValueOrDefault : System.CommandLine.CommandResult -> obj
<Extension()>
Public Function GetValueOrDefault (commandResult As CommandResult) As Object
Parameters
- commandResult
- CommandResult
Returns
- Attributes
Applies to
GetValueOrDefault<T>(CommandResult)
Caution
Use GetArgumentValueOrDefault instead. This method will be removed in a future version.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetValueOrDefault(System::CommandLine::CommandResult ^ commandResult);
[System.Obsolete("Use GetArgumentValueOrDefault instead. This method will be removed in a future version.")]
public static T GetValueOrDefault<T>(this System.CommandLine.CommandResult commandResult);
[<System.Obsolete("Use GetArgumentValueOrDefault instead. This method will be removed in a future version.")>]
static member GetValueOrDefault : System.CommandLine.CommandResult -> 'T
<Extension()>
Public Function GetValueOrDefault(Of T) (commandResult As CommandResult) As T
Type Parameters
- T
Parameters
- commandResult
- CommandResult
Returns
- Attributes