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和类的属性公开。UserControlThe methods and properties of the HttpRequest class are exposed through the Request property of the HttpApplication, HttpContext, Page, and UserControl classes.

适用于