Skip to main content
Version: 4.1

CurrencyValidationRule

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Validates currency values.

public class CurrencyValidationRule : ValidationRule

Constructors

Instance member CurrencyValidationRule()

Initializes a new instance of the CurrencyValidationRule class.

Properties

Instance member CurrencySymbol

String: Returns or sets the currency symbol to validate. The default is null to use the current CurrencySymbol. (Default: null)

Instance member DecimalDigits

Nullable<Int32>: Returns or sets the required number of decimal digits; or null to use the current CurrencyDecimalDigits. (Default: null)

Instance member Format

Boolean: Returns or sets whether to format the value of the control after validation. (Default: False)

Instance member MaximumValue

Nullable<Decimal>: Returns or sets the maximum value; or null for no maximum. (Default: null)

Instance member MinimumValue

Nullable<Decimal>: Returns or sets the minimum value; or null for no minimum. (Default: null)

Instance member Name

String: Returns or sets the name of the validation rule. (Default: "Currency")

Instance member Required

Boolean: Returns or sets whether the control can be empty or its required to have a value. (Default: False)

Methods

Instance member OnValidated(control)

Invoked after the control has been successfully validated.

ParameterTypeDescription
controlControl

Instance member OnValidating(control)

Validates the control using the validation rule.

ParameterTypeDescription
controlControl

Returns: Boolean. true if the validation is successful; otherwise false.