ValidationRule Constructors

Definition

Initializes a new instance of the ValidationRule class.

Overloads

ValidationRule()

Initializes a new instance of the ValidationRule class.

ValidationRule(ValidationStep, Boolean)

Initializes a new instance of the ValidationRule class with the specified validation step and a value that indicates whether the validation rule runs when the target is updated.

ValidationRule()

Initializes a new instance of the ValidationRule class.

protected:
 ValidationRule();
protected ValidationRule ();
Protected Sub New ()

ValidationRule(ValidationStep, Boolean)

Initializes a new instance of the ValidationRule class with the specified validation step and a value that indicates whether the validation rule runs when the target is updated.

protected:
 ValidationRule(System::Windows::Controls::ValidationStep validationStep, bool validatesOnTargetUpdated);
protected ValidationRule (System.Windows.Controls.ValidationStep validationStep, bool validatesOnTargetUpdated);
new System.Windows.Controls.ValidationRule : System.Windows.Controls.ValidationStep * bool -> System.Windows.Controls.ValidationRule

Parameters

validationStep
ValidationStep

One of the enumeration values that specifies when the validation rule runs.

validatesOnTargetUpdated
Boolean

true to have the validation rule run when the target of the Binding is updated; otherwise, false.

Applies to