ArgumentResultExtensions.GetValueOrDefault Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
GetValueOrDefault(ArgumentResult)
public:
[System::Runtime::CompilerServices::Extension]
static System::Object ^ GetValueOrDefault(System::CommandLine::ArgumentResult ^ argumentResult);
public static object GetValueOrDefault(this System.CommandLine.ArgumentResult argumentResult);
static member GetValueOrDefault : System.CommandLine.ArgumentResult -> obj
<Extension()>
Public Function GetValueOrDefault (argumentResult As ArgumentResult) As Object
Paramètres
- argumentResult
- ArgumentResult
Retours
S’applique à
GetValueOrDefault<T>(ArgumentResult)
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T GetValueOrDefault(System::CommandLine::ArgumentResult ^ argumentResult);
public static T GetValueOrDefault<T>(this System.CommandLine.ArgumentResult argumentResult);
static member GetValueOrDefault : System.CommandLine.ArgumentResult -> 'T
<Extension()>
Public Function GetValueOrDefault(Of T) (argumentResult As ArgumentResult) As T
Paramètres de type
- T
Paramètres
- argumentResult
- ArgumentResult