Skip to content

M_CommandLine_Text_HelpText_AddVerbs

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

HelpText.AddVerbs Method (Int32, Type[])

Adds a text block with verbs usage string.

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

Syntax

C#

public HelpText AddVerbs(
	int maximumLength,
	params Type[] types
)

VB

Public Function AddVerbs ( 
	maximumLength As Integer,
	ParamArray types As Type()
) As HelpText

C++

public:
HelpText^ AddVerbs(
	int maximumLength, 
	... array<Type^>^ types
)

F#

member AddVerbs : 
        maximumLength : int * 
        types : Type[] -> HelpText 

Parameters

 

maximumLength
Type: System.Int32
The maximum length of the help screen.
types
Type: System.Type[]
The array of Type with verb commands.

Return Value

Type: HelpText

Exceptions

 

Exception Condition
ArgumentNullException Thrown when parameter types is null.
ArgumentOutOfRangeException Thrown if types array is empty.

See Also

Reference

HelpText Class
AddVerbs Overload
CommandLine.Text Namespace

Clone this wiki locally