언어

CommandResultExtensions.GetArgumentValueOrDefault 메서드

정의

오버로드

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

매개 변수

commandResult
CommandResult
argumentName
String

반품

적용 대상

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

매개 변수

commandResult
CommandResult
argumentName
String

반품

T

적용 대상