Skip to content

M_CommandLine_OptionAttribute__ctor_2

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

OptionAttribute Constructor (Char, String)

Initializes a new instance of the OptionAttribute class.

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

Syntax

C#

publicOptionAttribute(char shortName,string longName )

VB

PublicSubNew(shortNameAsChar,longNameAsString)

C++

public:OptionAttribute( wchar_t shortName, String^ longName )

F#

new: shortName : char * longName : string -> OptionAttribute

Parameters

shortName
Type: System.Char
The short name of the option.
longName
Type: System.String
The long name of the option or null if not used.

See Also

Reference

OptionAttribute Class
OptionAttribute Overload
CommandLine Namespace

Clone this wiki locally