Sprog

Argument<T> Constructors

Definition

Overloads

Name Description
Argument<T>()
Argument<T>(TryConvertArgument<T>)
Argument<T>(Func<T>)
Argument<T>(String)

Initializes a new instance of the Argument class.

Argument<T>(String, T)

Argument<T>()

Source:
Argument{T}.cs
public:
 Argument();
public Argument();
Public Sub New ()

Applies to

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))

Parameters

Applies to

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))

Parameters

defaultValue
Func<T>

Applies to

Argument<T>(String)

Source:
Argument{T}.cs
Source:
Argument{T}.cs

Initializes a new instance of the Argument class.

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)

Parameters

name
String

The name of the argument. This name can be used to look up the parsed value and is displayed in help.

Applies to

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)

Parameters

name
String
defaultValue
T

Applies to