Export (0) Print
Expand All

HttpUtility Methods

The HttpUtility type exposes the following members.

  NameDescription
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member HtmlAttributeEncode(String) Minimally converts a string to an HTML-encoded string.
Public method Static member HtmlAttributeEncode(String, TextWriter) Minimally converts a string into an HTML-encoded string and sends the encoded string to a TextWriter output stream.
Public method Static member HtmlDecode(String) Converts a string that has been HTML-encoded for HTTP transmission into a decoded string.
Public method Static member HtmlDecode(String, TextWriter) Converts a string that has been HTML-encoded into a decoded string, and sends the decoded string to a TextWriter output stream.
Public method Static member HtmlEncode(Object) Converts an object's string representation into an HTML-encoded string, and returns the encoded string.
Public method Static member HtmlEncode(String) Converts a string to an HTML-encoded string.
Public method Static member HtmlEncode(String, TextWriter) Converts a string into an HTML-encoded string, and returns the output as a TextWriter stream of output.
Public method Static member JavaScriptStringEncode(String) Encodes a string.
Public method Static member JavaScriptStringEncode(String, Boolean) Encodes a string.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member ParseQueryString(String) Parses a query string into a NameValueCollection using UTF8 encoding.
Public method Static member ParseQueryString(String, Encoding) Parses a query string into a NameValueCollection using the specified Encoding.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Static member UrlDecode(String) Converts a string that has been encoded for transmission in a URL into a decoded string.
Public method Static member UrlDecode(Byte[], Encoding) Converts a URL-encoded byte array into a decoded string using the specified decoding object.
Public method Static member UrlDecode(String, Encoding) Converts a URL-encoded string into a decoded string, using the specified encoding object.
Public method Static member UrlDecode(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 method Static member UrlDecodeToBytes(Byte[]) Converts a URL-encoded array of bytes into a decoded array of bytes.
Public method Static member UrlDecodeToBytes(String) Converts a URL-encoded string into a decoded array of bytes.
Public method Static member UrlDecodeToBytes(String, Encoding) Converts a URL-encoded string into a decoded array of bytes using the specified decoding object.
Public method Static member UrlDecodeToBytes(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 method Static member UrlEncode(Byte[]) Converts a byte array into an encoded URL string.
Public method Static member UrlEncode(String) Encodes a URL string.
Public method Static member UrlEncode(String, Encoding) Encodes a URL string using the specified encoding object.
Public method Static member UrlEncode(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 method Static member UrlEncodeToBytes(Byte[]) Converts an array of bytes into a URL-encoded array of bytes.
Public method Static member UrlEncodeToBytes(String) Converts a string into a URL-encoded array of bytes.
Public method Static member UrlEncodeToBytes(String, Encoding) Converts a string into a URL-encoded array of bytes using the specified encoding object.
Public method Static member UrlEncodeToBytes(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 method Static member UrlEncodeUnicode Converts a string into a Unicode string.
Public method Static member UrlEncodeUnicodeToBytes Converts a Unicode string into an array of bytes.
Public method Static member UrlPathEncode Encodes the path portion of a URL string for reliable HTTP transmission from the Web server to a client.
Top

Community Additions

ADD
Show:
© 2014 Microsoft