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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기