System.Web.Hosting.SimpleWorkerRequest Members

The members of System.Web.Hosting.SimpleWorkerRequest are listed below.

See Also: Inherited members from System.Web.HttpWorkerRequest

Public Constructors

Initializes a new instance of the System.Web.Hosting.SimpleWorkerRequest class when the target application domain has been created using the ApplicationHost.CreateApplicationHost(Type, string, string) method.

Initializes a new instance of the System.Web.Hosting.SimpleWorkerRequest class for use in an arbitrary application domain, when the user code creates an System.Web.HttpContext (passing the SimpleWorkerRequest as an argument to the HttpContext constructor).

Public Properties

[read-only]
override
MachineConfigPathstring.

Gets the full physical path to the Machine.config file.

[read-only]
override
MachineInstallDirectorystring.

Gets the physical path to the directory where the ASP.NET binaries are installed.

[read-only]
override
RootWebConfigPathstring.

Gets the full physical path to the root Web.config file.

Public Methods

override
EndOfRequest()

Notifies the System.Web.HttpWorkerRequest that request processing for the current request is complete.

override
FlushResponse(bool)

Sends all pending response data to the client.

override
GetAppPath() : string

Returns the virtual path to the currently executing server application.

override
GetAppPathTranslated() : string

Returns the UNC-translated path to the currently executing server application.

override
GetFilePath() : string

Returns the physical path to the requested URI.

override
GetFilePathTranslated() : string

Returns the physical file path to the requested URI (and translates it from virtual path to physical path: for example, "/proj1/page.aspx" to "c:\dir\page.aspx")

override
GetHttpVerbName() : string

Returns the HTTP request verb.

override
GetHttpVersion() : string

Returns the HTTP version string of the request (for example, "HTTP/1.1").

override
GetLocalAddress() : string

Returns the server IP address of the interface on which the request was received.

override
GetLocalPort() : int

Returns the port number on which the request was received.

override
GetPathInfo() : string

Returns additional path information for a resource with a URL extension. That is, for the path /virdir/page.html/tail, the return value is /tail.

override
GetQueryString() : string

Returns the query string specified in the request URL.

override
GetRawUrl() : string

Returns the URL path contained in the header with the query string appended.

override
GetRemoteAddress() : string

Returns the IP address of the client.

override
GetRemotePort() : int

Returns the client's port number.

override
GetServerVariable(string) : string

Returns a single server variable from a dictionary of server variables associated with the request.

override
GetUriPath() : string

Returns the virtual path to the requested URI.

override
GetUserToken() : IntPtr

Returns the client's impersonation token.

override
MapPath(string) : string

Returns the physical path corresponding to the specified virtual path.

override
SendKnownResponseHeader(int, string)

Adds a standard HTTP header to the response.

override
SendResponseFromFile(IntPtr, long, long)

Adds the contents of the file with the specified handle to the response and specifies the starting position in the file and the number of bytes to send.

override
SendResponseFromFile(string, long, long)

Adds the contents of the file with the specified name to the response and specifies the starting position in the file and the number of bytes to send.

override
SendResponseFromMemory(byte[], int)

Adds the contents of a byte array to the response and specifies the number of bytes to send.

override
SendStatus(int, string)

Specifies the HTTP status code and status description of the response; for example, SendStatus(200, "Ok").

override
SendUnknownResponseHeader(string, string)

Adds a nonstandard HTTP header to the response.