Skip to content

M_CommandLine_Text_HelpText__ctor_3

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

HelpText Constructor (SentenceBuilder, String, String)

Initializes a new instance of the HelpText class specifying heading and copyright strings.

Namespace: CommandLine.Text
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public HelpText(
	SentenceBuilder sentenceBuilder,
	string heading,
	string copyright
)

VB

Public Sub New ( 
	sentenceBuilder As SentenceBuilder,
	heading As String,
	copyright As String
)

C++

public:
HelpText(
	SentenceBuilder^ sentenceBuilder, 
	String^ heading, 
	String^ copyright
)

F#

new : 
        sentenceBuilder : SentenceBuilder * 
        heading : string * 
        copyright : string -> HelpText

Parameters

 

sentenceBuilder
Type: CommandLine.Text.SentenceBuilder
A SentenceBuilder instance.
heading
Type: System.String
A string with heading or an instance of HeadingInfo.
copyright
Type: System.String
A string with copyright or an instance of CopyrightInfo.

Exceptions

 

Exception Condition
ArgumentNullException Thrown when one or more parameters are null or empty strings.

See Also

Reference

HelpText Class
HelpText Overload
CommandLine.Text Namespace

Clone this wiki locally