HttpRequest(String, String, String) HttpRequest(String, String, String) HttpRequest(String, String, String) HttpRequest(String, String, String) Constructor

定義

初始化 HttpRequest 物件。Initializes an HttpRequest object.

public:
 HttpRequest(System::String ^ filename, System::String ^ url, System::String ^ queryString);
public HttpRequest (string filename, string url, string queryString);
new System.Web.HttpRequest : string * string * string -> System.Web.HttpRequest
Public Sub New (filename As String, url As String, queryString As String)

參數

filename
String String String String

與要求相關聯的檔案名稱。The name of the file associated with the request.

url
String String String String

目前要求 URL 的相關資訊。The information regarding the URL of the current request.

queryString
String String String String

利用要求所傳送的整個查詢字串 ('?' 之後的所有內容)。The entire query string sent with the request (everything after the '?').

備註

您不需要建立您自己的執行個體HttpRequest類別。You do not need to create your own instance of the HttpRequest class. 方法和屬性HttpRequest類別會透過公開Request屬性HttpApplicationHttpContextPage,和UserControl類別。The methods and properties of the HttpRequest class are exposed through the Request property of the HttpApplication, HttpContext, Page, and UserControl classes.

適用於