HttpServerUtilityBase Class
TOC
Collapse the table of content
Expand the table of content

HttpServerUtilityBase Class

.NET Framework (current version)
 

Serves as the base class for classes that provide helper methods for processing Web requests.

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

System.Object
  System.Web.HttpServerUtilityBase
    System.Web.HttpServerUtilityWrapper

public abstract class HttpServerUtilityBase

NameDescription
System_CAPS_protmethodHttpServerUtilityBase()

Initializes the class for use by an inherited class instance. This constructor can only be called by an inherited class.

NameDescription
System_CAPS_pubpropertyMachineName

When overridden in a derived class, gets the server's computer name.

System_CAPS_pubpropertyScriptTimeout

When overridden in a derived class, gets or sets the request time-out value in seconds.

NameDescription
System_CAPS_pubmethodClearError()

When overridden in a derived class, clears the most recent exception.

System_CAPS_pubmethodCreateObject(String)

When overridden in a derived class, creates a server instance of a COM object that is identified by the object's programmatic identifier (ProgID).

System_CAPS_pubmethodCreateObject(Type)

When overridden in a derived class, creates a server instance of a COM object that is identified by the object's type.

System_CAPS_pubmethodCreateObjectFromClsid(String)

When overridden in a derived class, creates a server instance of a COM object that is identified by the object's class identifier (CLSID).

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodExecute(IHttpHandler, TextWriter, Boolean)

When overridden in a derived class, executes the specified handler in the context of the current process, using a TextWriter instance to capture output from the executed handler and a value that specifies whether to clear the QueryString and Form collections.

System_CAPS_pubmethodExecute(String)

When overridden in a derived class, executes the handler for the specified virtual path in the context of the current process.

System_CAPS_pubmethodExecute(String, Boolean)

When overridden in a derived class, executes the handler for the specified virtual path in the context of the current process and specifies whether to clear the QueryString and Form collections.

System_CAPS_pubmethodExecute(String, TextWriter)

When overridden in a derived class, executes the handler for the specified virtual path in the context of the current process, using a TextWriter instance to capture output from the executed handler.

System_CAPS_pubmethodExecute(String, TextWriter, Boolean)

When overridden in a derived class, executes the handler for the specified virtual path in the context of the current request, using a TextWriter instance to capture output from the page and a value that indicates whether to clear the QueryString and Form collections.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLastError()

When overridden in a derived class, returns the most recent exception.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodHtmlDecode(String)

When overridden in a derived class, decodes an HTML-encoded string and returns the decoded string.

System_CAPS_pubmethodHtmlDecode(String, TextWriter)

When overridden in a derived class, decodes an HTML-encoded string and returns the results in a stream.

System_CAPS_pubmethodHtmlEncode(String)

When overridden in a derived class, HTML-encodes a string and returns the encoded string.

System_CAPS_pubmethodHtmlEncode(String, TextWriter)

When overridden in a derived class, HTML-encodes a string and sends the resulting output to an output stream.

System_CAPS_pubmethodMapPath(String)

When overridden in a derived class, returns the physical file path that corresponds to the specified virtual path on the Web server.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTransfer(IHttpHandler, Boolean)

When overridden in a derived class, terminates execution of the current process and starts execution of a new request, using a custom HTTP handler and a value that specifies whether to clear the QueryString and Form collections.

System_CAPS_pubmethodTransfer(String)

When overridden in a derived class, terminates execution of the current process and starts execution of a page or handler that is specified with a URL.

System_CAPS_pubmethodTransfer(String, Boolean)

When overridden in a derived class, terminates execution of the current page and starts execution of a different page or handler by using the specified URL and a value that specifies whether to clear the QueryString and Form collections.

System_CAPS_pubmethodTransferRequest(String)

When overridden in a derived class, asynchronously executes the end point at the specified URL.

System_CAPS_pubmethodTransferRequest(String, Boolean)

When overridden in a derived class, asynchronously executes the endpoint at the specified URL and specifies whether to clear the QueryString and Form collections.

System_CAPS_pubmethodTransferRequest(String, Boolean, String, NameValueCollection)

When overridden in a derived class, asynchronously executes the endpoint at the specified URL by using the specified HTTP method and headers.

System_CAPS_pubmethodTransferRequest(String, Boolean, String, NameValueCollection, Boolean)

System_CAPS_pubmethodUrlDecode(String)

When overridden in a derived class, decodes a URL-encoded string and returns the decoded string.

System_CAPS_pubmethodUrlDecode(String, TextWriter)

When overridden in a derived class, decodes a URL-encoded string and sends the resulting output to a stream.

System_CAPS_pubmethodUrlEncode(String)

When overridden in a derived class, URL-encodes a string and returns the encoded string.

System_CAPS_pubmethodUrlEncode(String, TextWriter)

When overridden in a derived class, URL-encodes a string and sends the resulting output to a stream.

System_CAPS_pubmethodUrlPathEncode(String)

When overridden in a derived class, URL-encodes the path section of a URL string.

System_CAPS_pubmethodUrlTokenDecode(String)

When overridden in a derived class, decodes a URL string token into an equivalent byte array by using base64-encoded digits.

System_CAPS_pubmethodUrlTokenEncode(Byte[])

When overridden in a derived class, encodes a byte array into an equivalent string representation by using base64 digits, which makes it usable for transmission on the URL.

The HttpServerUtilityBase class is an abstract class that contains the same members as the HttpServerUtility class. The HttpServerUtilityBase class enables you to create derived classes that are like the HttpServerUtility class, but that you can customize and that work outside the ASP.NET pipeline. When you perform unit testing, you typically use a derived class to implement members with customized behavior that fulfills the scenario you are testing.

The HttpServerUtilityWrapper class derives from the HttpServerUtilityBase class. The HttpServerUtilityWrapper class serves as a wrapper for the HttpServerUtility class. At run time, you typically use an instance of the HttpServerUtilityWrapper class to call members of the HttpServerUtility object.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft