CommandResultExtensions.GetArgumentValueOrDefault メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| 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
パラメーター
- 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