Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 2.0
System.Web.Hosting
 SimpleWorkerRequest Constructor (St...
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
SimpleWorkerRequest.SimpleWorkerRequest(String, String, String, String, TextWriter) Constructor
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)
Visual Basic (Declaration)
Public Sub New ( _
    appVirtualDir As String, _
    appPhysicalDir As String, _
    page As String, _
    query As String, _
    output As TextWriter _
)
Visual Basic (Usage)
Dim appVirtualDir As String
Dim appPhysicalDir As String
Dim page As String
Dim query As String
Dim output As TextWriter

Dim instance As New SimpleWorkerRequest(appVirtualDir, appPhysicalDir, page, query, output)
C#
public SimpleWorkerRequest (
    string appVirtualDir,
    string appPhysicalDir,
    string page,
    string query,
    TextWriter output
)
C++
public:
SimpleWorkerRequest (
    String^ appVirtualDir, 
    String^ appPhysicalDir, 
    String^ page, 
    String^ query, 
    TextWriter^ output
)
J#
public SimpleWorkerRequest (
    String appVirtualDir, 
    String appPhysicalDir, 
    String page, 
    String query, 
    TextWriter output
)
JScript
public function SimpleWorkerRequest (
    appVirtualDir : String, 
    appPhysicalDir : String, 
    page : String, 
    query : String, 
    output : TextWriter
)
XAML
Not applicable.

Parameters

appVirtualDir

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

appPhysicalDir

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

page

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

query

The text of the query string.

output

A TextWriter that captures the output from the response.

Exception typeCondition

HttpException

The appVirtualDir parameter cannot be overridden in this context.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker