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.

備註

如果 page 屬性 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. 如果 [page] 屬性 SkipFormActionValidation 設定為 false ,就會驗證查詢字串參數,不論 ValidateInput 屬性是設為 truefalseIf 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.

適用於