CommandResultExtensions.GetValueOrDefault 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetValueOrDefault(CommandResult) |
已淘汰.
|
| GetValueOrDefault<T>(CommandResult) |
已淘汰.
|
GetValueOrDefault(CommandResult)
警告
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
參數
- commandResult
- CommandResult
傳回
- 屬性
適用於
GetValueOrDefault<T>(CommandResult)
警告
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
類型參數
- T
參數
- commandResult
- CommandResult
傳回
T
- 屬性