Class OnlinerValidationRule<T>
Generic class provides base for tags validation rules.
Inheritance
OnlinerValidationRule<T>
Inherited Members
Namespace: AXSharp.Connector.ValueValidation
Assembly: AXSharp.Connector.dll
Syntax
public abstract class OnlinerValidationRule<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Edit this page View SourceOnlinerValidationRule(IValueBoundaries<T>)
Initializes a new instance of the ByteValueValidationRule class.
Declaration
protected OnlinerValidationRule(IValueBoundaries<T> onliner)
Parameters
| Type | Name | Description |
|---|---|---|
| IValueBoundaries<T> | onliner | Onliner type. |
Properties
| Edit this page View SourceMax
Gets the max. allowed value.
Declaration
public T Max { get; }
Property Value
| Type | Description |
|---|---|
| T |
Min
Gets the min. allowed value.
Declaration
public T Min { get; }
Property Value
| Type | Description |
|---|---|
| T |
ValidationErrorTip
Provides validation tip.
Declaration
public string ValidationErrorTip { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceValidate(T, CultureInfo)
Validates value.
Declaration
public abstract ValidationResult Validate(T value, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | Value to be validated. |
| CultureInfo | culture | Culture. |
Returns
| Type | Description |
|---|---|
| ValidationResult |