ModelMetadata.RequestValidationEnabled 属性

定义

获取或设置一个值,该值指定是否启用请求验证。

public:
 virtual property bool RequestValidationEnabled { bool get(); void set(bool value); };
public virtual bool RequestValidationEnabled { get; set; }
member this.RequestValidationEnabled : bool with get, set
Public Overridable Property RequestValidationEnabled As Boolean

属性值

true 如果启用了请求验证,则为 ;否则,为 false. 默认值为 true

适用于