Skip to content

M_CommandLine_Text_HeadingInfo__ctor

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

HeadingInfo Constructor

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

Syntax

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

Parameters

 

programName
Type: System.String
The name of the program.
version (Optional)
Type: System.String
The version of the program.

Exceptions

 

Exception Condition
ArgumentException Thrown when parameter programName is null or empty string.

See Also

Reference

HeadingInfo Class
CommandLine.Text Namespace

Clone this wiki locally