SimpleWorkerRequest Constructor (String, String, String, String, TextWriter)

 

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).

Namespace:   System.Web.Hosting
Assembly:  System.Web (in System.Web.dll)

public SimpleWorkerRequest(
	string appVirtualDir,
	string appPhysicalDir,
	string page,
	string query,
	TextWriter output
)

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
Return to top
Show: