Initializes a new instance of the
FormFieldDefinition class with provided attributes.
Syntax
'Declaration
Public Function New( _
ByVal As String, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As List(Of FieldAlias), _
ByVal As FormFieldDataType, _
ByVal As FormFieldGroup, _
ByVal As IEnumerable(Of RuleDefinition) _
)
'Usage
Dim name As String
Dim isOutput As Boolean
Dim isRequired As Boolean
Dim aliases As List(Of FieldAlias)
Dim fieldType As FormFieldDataType
Dim group As FormFieldGroup
Dim fieldRules As IEnumerable(Of RuleDefinition)
Dim instance As New FormFieldDefinition(name, isOutput, isRequired, aliases, fieldType, group, fieldRules)
Parameters
- name
- Name of the field.
- isOutput
- Flag that defines whether the field will be output in FormResult.Fields.
- isRequired
- Flag that defines whether the field is required.
- aliases
- Expected aliases for the field.
- fieldType
- Type of data the field is expected to contain.
- group
- Group to which the field belongs.
- fieldRules
- Rules to be applied to the field.
See Also