QueryStringParameter.ValidateInput 属性

定义

获取或设置是否验证查询字符串参数的值。Gets or sets whether the value of the query string parameter is being validated or not.

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

属性值

Boolean

如果查询参数的值有效,则为 true;否则为 falsetrue if the value of the query parameter is being validated; otherwise, false.

注解

如果页属性 SkipFormActionValidation 设置为 true ,并且 ValidateInput 属性设置为 false ,则不会验证查询字符串参数。If the page property SkipFormActionValidation is set to true, and the ValidateInput property is set to false, the query string parameter will not be validated. 但是,如果页属性 SkipFormActionValidation 设置为 true ,并且 ValidateInput 属性设置为 true ,则将验证查询字符串参数。However, if the page property SkipFormActionValidation is set to true, and the ValidateInput property is set to true, the query string parameter will be validated. 如果将页属性 SkipFormActionValidation 设置为 false ,则无论 ValidateInput 属性是否设置为或,都将验证查询字符串参数 true falseIf the page property SkipFormActionValidation is set to false, the query string parameter will be validated regardless of whether the ValidateInput property is set to true or false.

适用于