Nyelv

CommandResultExtensions.GetArgumentValueOrDefault Metódus

Definíció

Túlterhelések

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

Paraméterek

commandResult
CommandResult
argumentName
String

Válaszok

A következőre érvényes:

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

Típusparaméterek

T

Paraméterek

commandResult
CommandResult
argumentName
String

Válaszok

T

A következőre érvényes: