语言

DataAnnotationsValidator.DisableClientValidation 属性

定义

获取或设置此窗体是否禁止使用客户端验证规则。 当(默认值)时 false ,框架在呈现的 HTML 中包含表单模型的验证规则,以便可以在不往返服务器的情况下报告用户错误。 当 true仅运行服务器端验证时。

[Microsoft.AspNetCore.Components.Parameter]
public bool DisableClientValidation { get; set; }
[<Microsoft.AspNetCore.Components.Parameter>]
member this.DisableClientValidation : bool with get, set
Public Property DisableClientValidation As Boolean

属性值

属性

适用于