M_CommandLine_Text_HeadingInfo__ctor - adutton/commandline GitHub Wiki
Initializes a new instance of the HeadingInfo class specifying program name and version.
Namespace: CommandLine.Text
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
C#
public HeadingInfo(
string programName,
string version = null
)VB
Public Sub New (
programName As String,
Optional version As String = Nothing
)C++
public:
HeadingInfo(
String^ programName,
String^ version = nullptr
)F#
new :
programName : string *
?version : string
(* Defaults:
let _version = defaultArg version null
*)
-> HeadingInfo
- programName
- Type: System.String
The name of the program. - version (Optional)
- Type: System.String
The version of the program.
| Exception | Condition |
|---|---|
| ArgumentException | Thrown when parameter programName is null or empty string. |