Skip to content

M_CommandLine_Core_ValueSpecification_FromAttribute

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

ValueSpecification.FromAttribute Method

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

Syntax

C#

publicstaticValueSpecificationFromAttribute(ValueAttributeattribute,TypeconversionType,IEnumerable<string>enumValues)

VB

PublicSharedFunctionFromAttribute(attributeAsValueAttribute,conversionTypeAsType,enumValuesAsIEnumerable(OfString))AsValueSpecification

C++

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

F#

static memberFromAttribute:attribute :ValueAttribute * conversionType : Type * enumValues : IEnumerable<string>-> ValueSpecification 

Parameters

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

Return Value

Type: ValueSpecification

See Also

Reference

ValueSpecification Class
CommandLine.Core Namespace

Clone this wiki locally