Skip to content

M_CommandLine_Core_ValueSpecification__ctor

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

ValueSpecification Constructor

Initializes a new instance of the ValueSpecification class

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

Syntax

C#

public ValueSpecification(
	int index,
	string metaName,
	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

Public Sub New ( 
	index As Integer,
	metaName As String,
	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++

public:
ValueSpecification(
	int index, 
	String^ metaName, 
	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 : 
        index : int * 
        metaName : string * 
        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
*)
-> ValueSpecification

Parameters

 

index
Type: System.Int32
metaName
Type: System.String
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

ValueSpecification Class
CommandLine.Core Namespace

Clone this wiki locally