HttpRequestBase.ValidateInput Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, causes validation to occur for the collections that are accessed through the Cookies, Form, and QueryString properties.
public:
virtual void ValidateInput();
public virtual void ValidateInput ();
abstract member ValidateInput : unit -> unit
override this.ValidateInput : unit -> unit
Public Overridable Sub ValidateInput ()
Exceptions
Always.
Remarks
The HttpRequestBase class uses input validation flags to determine whether to perform validation on the request collections that are accessed through the Cookies, Form, and QueryString properties. The ValidateInput method sets these flags so that when the get
accessors of the Cookies, Form, or QueryString properties are invoked, input validation is performed. Validation works by checking all input data against a hard-coded list of potentially dangerous data.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示