Επεξεργασία

Κοινή χρήση μέσω


SimpleWorkerRequest Constructors

Definition

Initializes a new instance of the SimpleWorkerRequest class.

Overloads

SimpleWorkerRequest(String, String, TextWriter)

Initializes a new instance of the SimpleWorkerRequest class when the target application domain has been created using the CreateApplicationHost(Type, String, String) method.

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

SimpleWorkerRequest(String, String, TextWriter)

Initializes a new instance of the SimpleWorkerRequest class when the target application domain has been created using the CreateApplicationHost(Type, String, String) method.

public:
 SimpleWorkerRequest(System::String ^ page, System::String ^ query, System::IO::TextWriter ^ output);
public SimpleWorkerRequest (string page, string query, System.IO.TextWriter output);
new System.Web.Hosting.SimpleWorkerRequest : string * string * System.IO.TextWriter -> System.Web.Hosting.SimpleWorkerRequest
Public Sub New (page As String, query As String, output As TextWriter)

Parameters

page
String

The page to be requested (or the virtual path to the page, relative to the application directory).

query
String

The text of the query string.

output
TextWriter

A TextWriter that captures output from the response.

Applies to

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

public:
 SimpleWorkerRequest(System::String ^ appVirtualDir, System::String ^ appPhysicalDir, System::String ^ page, System::String ^ query, System::IO::TextWriter ^ output);
public SimpleWorkerRequest (string appVirtualDir, string appPhysicalDir, string page, string query, System.IO.TextWriter output);
new System.Web.Hosting.SimpleWorkerRequest : string * string * string * string * System.IO.TextWriter -> System.Web.Hosting.SimpleWorkerRequest
Public Sub New (appVirtualDir As String, appPhysicalDir As String, page As String, query As String, output As TextWriter)

Parameters

appVirtualDir
String

The virtual path to the application directory; for example, "/app".

appPhysicalDir
String

The physical path to the application directory; for example, "c:\app".

page
String

The virtual path for the request (relative to the application directory).

query
String

The text of the query string.

output
TextWriter

A TextWriter that captures the output from the response.

Exceptions

The appVirtualDir parameter cannot be overridden in this context.

Applies to