ValidationRule Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 ()
Applies to
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
Protected Sub New (validationStep As ValidationStep, validatesOnTargetUpdated As Boolean)
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應