BaseValidator.Validate 方法
定义
执行控件验证,然后根据验证结果设置 IsValid 属性。Performs control validation, and then sets the IsValid property based on the results of the validation. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public:
virtual void Validate();
public void Validate ();
abstract member Validate : unit -> unit
override this.Validate : unit -> unit
Public Sub Validate ()
实现
注解
Validate方法导致将 IsValid 控件的属性设置为 true 或 false ,具体取决于验证测试的结果。The Validate method causes the IsValid property of the control to be set to true or false, depending on the outcome of the validation test.