SimpleWorkerRequest Constructor (String, String, String, String, TextWriter)
.NET Framework (current version)
Initializes a new instance of the SimpleWorkerRequest class for use in an arbitrary application domain, when the user code creates an HttpContext (passing the SimpleWorkerRequest as an argument to the HttpContext constructor).
Assembly: System.Web (in System.Web.dll)
new : appVirtualDir:string * appPhysicalDir:string * page:string * query:string * output:TextWriter -> SimpleWorkerRequest
Parameters
- appVirtualDir
-
Type:
System.String
The virtual path to the application directory; for example, "/app".
- appPhysicalDir
-
Type:
System.String
The physical path to the application directory; for example, "c:\app".
- page
-
Type:
System.String
The virtual path for the request (relative to the application directory).
- query
-
Type:
System.String
The text of the query string.
- output
-
Type:
System.IO.TextWriter
A TextWriter that captures the output from the response.
| Exception | Condition |
|---|---|
| HttpException | The appVirtualDir parameter cannot be overridden in this context. |
.NET Framework
Available since 1.1
Available since 1.1
Show: