Argument<T> Constructeurs
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
| Nom | Description |
|---|---|
| Argument<T>() | |
| Argument<T>(TryConvertArgument<T>) | |
| Argument<T>(Func<T>) | |
| Argument<T>(String) |
Initialise une nouvelle instance de la classe Argument. |
| Argument<T>(String, T) |
Argument<T>()
Argument<T>(TryConvertArgument<T>)
public:
Argument(System::CommandLine::TryConvertArgument<T> ^ convert);
public Argument(System.CommandLine.TryConvertArgument<T> convert);
new System.CommandLine.Argument<'T> : System.CommandLine.TryConvertArgument<'T> -> System.CommandLine.Argument<'T>
Public Sub New (convert As TryConvertArgument(Of T))
Paramètres
- convert
- TryConvertArgument<T>
S’applique à
Argument<T>(Func<T>)
- Source:
- Argument{T}.cs
public:
Argument(Func<T> ^ defaultValue);
public Argument(Func<T> defaultValue);
new System.CommandLine.Argument<'T> : Func<'T> -> System.CommandLine.Argument<'T>
Public Sub New (defaultValue As Func(Of T))
Paramètres
- defaultValue
- Func<T>
S’applique à
Argument<T>(String)
- Source:
- Argument{T}.cs
- Source:
- Argument{T}.cs
Initialise une nouvelle instance de la classe Argument.
public:
Argument(System::String ^ name);
public Argument(string name);
new System.CommandLine.Argument<'T> : string -> System.CommandLine.Argument<'T>
Public Sub New (name As String)
Paramètres
- name
- String
Nom de l’argument. Ce nom peut être utilisé pour rechercher la valeur analysée et s’affiche dans l’aide.
S’applique à
Argument<T>(String, T)
public:
Argument(System::String ^ name, T defaultValue);
public Argument(string name, T defaultValue);
new System.CommandLine.Argument<'T> : string * 'T -> System.CommandLine.Argument<'T>
Public Sub New (name As String, defaultValue As T)
Paramètres
- name
- String
- defaultValue
- T