Skip to content

M_CommandLine_Core_OptionSpecification_FromAttribute

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

OptionSpecification.FromAttribute Method

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

Syntax

C#

public static OptionSpecification FromAttribute(
	OptionAttribute attribute,
	Type conversionType,
	IEnumerable<string> enumValues
)

VB

Public Shared Function FromAttribute ( 
	attribute As OptionAttribute,
	conversionType As Type,
	enumValues As IEnumerable(Of String)
) As OptionSpecification

C++

public:
static OptionSpecification^ FromAttribute(
	OptionAttribute^ attribute, 
	Type^ conversionType, 
	IEnumerable<String^>^ enumValues
)

F#

static member FromAttribute : 
        attribute : OptionAttribute * 
        conversionType : Type * 
        enumValues : IEnumerable<string> -> OptionSpecification 

Parameters

 

attribute
Type: CommandLine.OptionAttribute
conversionType
Type: System.Type
enumValues
Type: System.Collections.Generic.IEnumerable(String)

Return Value

Type: OptionSpecification

See Also

Reference

OptionSpecification Class
CommandLine.Core Namespace

Clone this wiki locally