This documentation is archived and is not being maintained.

HttpServerUtility Methods

The methods of the HttpServerUtility class are listed here. For a complete list of HttpServerUtility class members, see the HttpServerUtility Members topic.

Public Methods

public methodClearError Clears the previous exception.
public methodCreateObject Overloaded. Creates a server instance of a COM object.
public methodCreateObjectFromClsid Creates a server instance of a COM object identified by the object's class identifier (CLSID).
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodExecute Overloaded. Executes the current request using another page.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLastError Returns the previous exception.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodHtmlDecode Overloaded. Decodes a string that has been encoded to eliminate invalid HTML characters.
public methodHtmlEncode Overloaded. Encodes a string to be displayed in a browser.
public methodMapPath Returns the physical file path that corresponds to the specified virtual path on the Web server.
public methodToString (inherited from Object) Returns a String that represents the current Object.
public methodTransfer Overloaded. Terminates execution of the current page and begins execution of a new page for the current request.
public methodUrlDecode Overloaded. Decodes a string encoded for HTTP transmission and sent to the server in a URL.
public methodUrlEncode Overloaded. Encodes a string for reliable HTTP transmission from the Web server to a client via the URL.
public methodUrlPathEncode URL-encodes the path portion of a URL string and returns the encoded string.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

HttpServerUtility Class | System.Web Namespace