Skip to content

M_CommandLine_Core_Specification__ctor

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

Specification Constructor

Initializes a new instance of the Specification class

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

Syntax

C#

protected Specification(
	SpecificationType tag,
	bool required,
	Maybe<int> min,
	Maybe<int> max,
	Maybe<Object> defaultValue,
	string helpText,
	string metaValue,
	IEnumerable<string> enumValues,
	Type conversionType,
	TargetType targetType,
	bool hidden = false
)

VB

Protected Sub New ( 
	tag As SpecificationType,
	required As Boolean,
	min As Maybe(Of Integer),
	max As Maybe(Of Integer),
	defaultValue As Maybe(Of Object),
	helpText As String,
	metaValue As String,
	enumValues As IEnumerable(Of String),
	conversionType As Type,
	targetType As TargetType,
	Optional hidden As Boolean = false
)

C++

protected:
Specification(
	SpecificationType tag, 
	bool required, 
	Maybe<int>^ min, 
	Maybe<int>^ max, 
	Maybe<Object^>^ defaultValue, 
	String^ helpText, 
	String^ metaValue, 
	IEnumerable<String^>^ enumValues, 
	Type^ conversionType, 
	TargetType targetType, 
	bool hidden = false
)

F#

new : 
        tag : SpecificationType * 
        required : bool * 
        min : Maybe<int> * 
        max : Maybe<int> * 
        defaultValue : Maybe<Object> * 
        helpText : string * 
        metaValue : string * 
        enumValues : IEnumerable<string> * 
        conversionType : Type * 
        targetType : TargetType * 
        ?hidden : bool 
(* Defaults:
        let _hidden = defaultArg hidden false
*)
-> Specification

Parameters

 

tag
Type: CommandLine.Core.SpecificationType
required
Type: System.Boolean
min
Type: CSharpx.Maybe(Int32)
max
Type: CSharpx.Maybe(Int32)
defaultValue
Type: CSharpx.Maybe(Object)
helpText
Type: System.String
metaValue
Type: System.String
enumValues
Type: System.Collections.Generic.IEnumerable(String)
conversionType
Type: System.Type
targetType
Type: CommandLine.Core.TargetType
hidden (Optional)
Type: System.Boolean

See Also

Reference

Specification Class
CommandLine.Core Namespace

Clone this wiki locally