Class TimeOfDayValueValidationRule
Provides validation rule for OnlinerTimeOfDay type.
Inherited Members
Namespace: AXSharp.Connector.ValueValidation
Assembly: AXSharp.Connector.dll
Syntax
public class TimeOfDayValueValidationRule : OnlinerValidationRule<TimeSpan>
Constructors
| Edit this page View SourceTimeOfDayValueValidationRule(OnlinerTimeOfDay)
Initializes a new instance of the TimeOfDayValueValidationRule class.
Declaration
public TimeOfDayValueValidationRule(OnlinerTimeOfDay onliner)
Parameters
Type | Name | Description |
---|---|---|
OnlinerTimeOfDay | onliner | Onliner type. |
Methods
| Edit this page View SourceValidate(TimeSpan, CultureInfo)
Validates value of OnlinerTimeOfDay
Declaration
public override ValidationResult Validate(TimeSpan value, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | value | Value to validate. |
CultureInfo | culture | Culture. |
Returns
Type | Description |
---|---|
ValidationResult | Validation result. |