Click or drag to resize

HttpUtility Methods

The HttpUtility type exposes the following members.

Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberHtmlAttributeEncode(String) Minimally converts a string to an HTML-encoded string.
Public methodStatic memberHtmlAttributeEncode(String, TextWriter) Minimally converts a string into an HTML-encoded string and sends the encoded string to a TextWriter output stream.
Public methodStatic memberHtmlDecode(String) Decodes an HTML-encoded string and returns the decoded string.
Public methodStatic memberHtmlDecode(String, TextWriter) Decodes an HTML-encoded string and sends the resulting output to a TextWriter output stream.
Public methodStatic memberHtmlEncode(String) HTML-encodes a string and returns the encoded string.
Public methodStatic memberHtmlEncode(String, TextWriter) HTML-encodes a string and sends the resulting output to a TextWriter output stream.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberParseQueryString(String) Parses the query string of a url and returns a NameValueCollection with the parameters in the query string.
Public methodStatic memberParseQueryString(String, Encoding) Parses the query string of a url and returns a NameValueCollection with the parameters in the query string.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodStatic memberUrlDecode(String) Converts a string that has been encoded for transmission in a URL into a decoded string.
Public methodStatic memberUrlDecode(Byte, Encoding) Converts a URL-encoded byte array into a decoded string using the specified decoding object.
Public methodStatic memberUrlDecode(String, Encoding) Converts a URL-encoded string into a decoded string, using the specified encoding object.
Public methodStatic memberUrlDecode(Byte, Int32, Int32, Encoding) Converts a URL-encoded byte array into a decoded string using the specified encoding object, starting at the specified position in the array, and continuing for the specified number of bytes.
Public methodStatic memberUrlDecodeToBytes(Byte) Converts a URL-encoded array of bytes into a decoded array of bytes.
Public methodStatic memberUrlDecodeToBytes(String) Converts a URL-encoded string into a decoded array of bytes.
Public methodStatic memberUrlDecodeToBytes(String, Encoding) Converts a URL-encoded string into a decoded array of bytes using the specified decoding object.
Public methodStatic memberUrlDecodeToBytes(Byte, Int32, Int32) Converts a URL-encoded array of bytes into a decoded array of bytes, starting at the specified position in the array and continuing for the specified number of bytes.
Public methodStatic memberUrlEncode(Byte) Converts a byte array into an encoded URL string.
Public methodStatic memberUrlEncode(String) Encodes a URL string.
Public methodStatic memberUrlEncode(String, Encoding) Encodes a URL string using the specified encoding object.
Public methodStatic memberUrlEncode(Byte, Int32, Int32) Converts a byte array into a URL-encoded string, starting at the specified position in the array and continuing for the specified number of bytes.
Public methodStatic memberUrlEncodeToBytes(Byte) Converts an array of bytes into a URL-encoded array of bytes.
Public methodStatic memberUrlEncodeToBytes(String) Converts a string into a URL-encoded array of bytes.
Public methodStatic memberUrlEncodeToBytes(String, Encoding) Converts a string into a URL-encoded array of bytes using the specified encoding object.
Public methodStatic memberUrlEncodeToBytes(Byte, Int32, Int32) Converts an array of bytes into a URL-encoded array of bytes, starting at the specified position in the array and continuing for the specified number of bytes.
Public methodStatic memberUrlEncodeUnicodeToBytes Converts a Unicode string into an array of bytes.
Public methodStatic memberUrlPathEncode Encodes the path portion of a URL string for reliable HTTP transmission from the Web server to a client.
Top
See Also