CommandResultExtensions.GetArgumentValueOrDefault Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| GetArgumentValueOrDefault(CommandResult, String) | |
| GetArgumentValueOrDefault<T>(CommandResult, String) |
GetArgumentValueOrDefault(CommandResult, String)
public:
[System::Runtime::CompilerServices::Extension]
static System::Object ^ GetArgumentValueOrDefault(System::CommandLine::CommandResult ^ commandResult, System::String ^ argumentName);
public static object GetArgumentValueOrDefault(this System.CommandLine.CommandResult commandResult, string argumentName);
static member GetArgumentValueOrDefault : System.CommandLine.CommandResult * string -> obj
<Extension()>
Public Function GetArgumentValueOrDefault (commandResult As CommandResult, argumentName As String) As Object
Parámetros
- commandResult
- CommandResult
- argumentName
- String
Devoluciones
Se aplica a
GetArgumentValueOrDefault<T>(CommandResult, String)
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetArgumentValueOrDefault(System::CommandLine::CommandResult ^ commandResult, System::String ^ argumentName);
public static T GetArgumentValueOrDefault<T>(this System.CommandLine.CommandResult commandResult, string argumentName);
static member GetArgumentValueOrDefault : System.CommandLine.CommandResult * string -> 'T
<Extension()>
Public Function GetArgumentValueOrDefault(Of T) (commandResult As CommandResult, argumentName As String) As T
Parámetros de tipo
- T
Parámetros
- commandResult
- CommandResult
- argumentName
- String