Option<T> コンストラクター

定義

オーバーロード

Option<T>(String, String)

IdentifierSymbol クラスの新しいインスタンスを初期化します。

Option<T>(String[], String)
Option<T>(String, Func<T>, String)
Option<T>(String[], Func<T>, String)
Option<T>(String, ParseArgument<T>, Boolean, String)
Option<T>(String[], ParseArgument<T>, Boolean, String)

Option<T>(String, String)

IdentifierSymbol クラスの新しいインスタンスを初期化します。

public Option (string name, string? description = default);
new System.CommandLine.Option<'T> : string * string -> System.CommandLine.Option<'T>
Public Sub New (name As String, Optional description As String = Nothing)

パラメーター

name
String

記号の名前。

description
String

コマンド ライン ヘルプに表示されるシンボルの説明。

適用対象

Option<T>(String[], String)

public Option (string[] aliases, string? description = default);
new System.CommandLine.Option<'T> : string[] * string -> System.CommandLine.Option<'T>
Public Sub New (aliases As String(), Optional description As String = Nothing)

パラメーター

aliases
String[]
description
String

適用対象

Option<T>(String, Func<T>, String)

public Option (string name, Func<T> getDefaultValue, string? description = default);
new System.CommandLine.Option<'T> : string * Func<'T> * string -> System.CommandLine.Option<'T>
Public Sub New (name As String, getDefaultValue As Func(Of T), Optional description As String = Nothing)

パラメーター

name
String
getDefaultValue
Func<T>
description
String

適用対象

Option<T>(String[], Func<T>, String)

public Option (string[] aliases, Func<T> getDefaultValue, string? description = default);
new System.CommandLine.Option<'T> : string[] * Func<'T> * string -> System.CommandLine.Option<'T>
Public Sub New (aliases As String(), getDefaultValue As Func(Of T), Optional description As String = Nothing)

パラメーター

aliases
String[]
getDefaultValue
Func<T>
description
String

適用対象

Option<T>(String, ParseArgument<T>, Boolean, String)

public Option (string name, System.CommandLine.Parsing.ParseArgument<T> parseArgument, bool isDefault = false, string? description = default);
new System.CommandLine.Option<'T> : string * System.CommandLine.Parsing.ParseArgument<'T> * bool * string -> System.CommandLine.Option<'T>
Public Sub New (name As String, parseArgument As ParseArgument(Of T), Optional isDefault As Boolean = false, Optional description As String = Nothing)

パラメーター

name
String
parseArgument
ParseArgument<T>
isDefault
Boolean
description
String

適用対象

Option<T>(String[], ParseArgument<T>, Boolean, String)

public Option (string[] aliases, System.CommandLine.Parsing.ParseArgument<T> parseArgument, bool isDefault = false, string? description = default);
new System.CommandLine.Option<'T> : string[] * System.CommandLine.Parsing.ParseArgument<'T> * bool * string -> System.CommandLine.Option<'T>
Public Sub New (aliases As String(), parseArgument As ParseArgument(Of T), Optional isDefault As Boolean = false, Optional description As String = Nothing)

パラメーター

aliases
String[]
parseArgument
ParseArgument<T>
isDefault
Boolean
description
String

適用対象