1 <?xml version="1.0" encoding="utf-8"?><span>
4 <name>System.Web.HttpUtility</name>
7 <member name="T:System.Web.HttpUtility">
8 <summary>Provides methods for encoding and decoding URLs when processing Web requests. This class cannot be inherited.</summary>
10 <member name="M:System.Web.HttpUtility.#ctor">
11 <summary>Initializes a new instance of the <see cref="T:System.Web.HttpUtility"></see> class.</summary>
13 <member name="M:System.Web.HttpUtility.HtmlAttributeEncode(System.String)">
14 <summary>Minimally converts a string to an HTML-encoded string.</summary>
15 <param name="s">The string to encode.</param>
16 <returns>An encoded string.</returns>
18 <member name="M:System.Web.HttpUtility.HtmlAttributeEncode(System.String,System.IO.TextWriter)">
19 <summary>Minimally converts a string into an HTML-encoded string and sends the encoded string to a <see cref="T:System.IO.TextWriter"></see> output stream.</summary>
20 <param name="s">The string to encode</param>
21 <param name="output">A <see cref="T:System.IO.TextWriter"></see> output stream.</param>
23 <member name="M:System.Web.HttpUtility.HtmlDecode(System.String)">
24 <summary>Converts a string that has been HTML-encoded for HTTP transmission into a decoded string.</summary>
25 <param name="s">The string to decode.</param>
26 <returns>A decoded string.</returns>
28 <member name="M:System.Web.HttpUtility.HtmlDecode(System.String,System.IO.TextWriter)">
29 <summary>Converts a string that has been HTML-encoded into a decoded string, and sends the decoded string to a <see cref="T:System.IO.TextWriter"></see> output stream.</summary>
30 <param name="s">The string to decode.</param>
31 <param name="output">A <see cref="T:System.IO.TextWriter"></see> stream of output.</param>
33 <member name="M:System.Web.HttpUtility.HtmlEncode(System.Object)">
34 <summary>Converts an object's string representation into an HTML-encoded string, and returns the encoded string.</summary>
35 <param name="value">An object.</param>
36 <returns>An encoded string.</returns>
38 <member name="M:System.Web.HttpUtility.HtmlEncode(System.String)">
39 <summary>Converts a string to an HTML-encoded string.</summary>
40 <param name="s">The string to encode.</param>
41 <returns>An encoded string.</returns>
43 <member name="M:System.Web.HttpUtility.HtmlEncode(System.String,System.IO.TextWriter)">
44 <summary>Converts a string into an HTML-encoded string, and returns the output as a <see cref="T:System.IO.TextWriter"></see> stream of output.</summary>
45 <param name="s">The string to encode</param>
46 <param name="output">A <see cref="T:System.IO.TextWriter"></see> output stream.</param>
48 <member name="M:System.Web.HttpUtility.JavaScriptStringEncode(System.String)">
49 <summary>Encodes a string.</summary>
50 <param name="value">A string to encode.</param>
51 <returns>An encoded string.</returns>
53 <member name="M:System.Web.HttpUtility.JavaScriptStringEncode(System.String,System.Boolean)">
54 <summary>Encodes a string.</summary>
55 <param name="value">A string to encode.</param>
56 <param name="addDoubleQuotes">A value that indicates whether double quotation marks will be included around the encoded string.</param>
57 <returns>An encoded string.</returns>
59 <member name="M:System.Web.HttpUtility.ParseQueryString(System.String)">
60 <summary>Parses a query string into a <see cref="T:System.Collections.Specialized.NameValueCollection"></see> using <see cref="P:System.Text.Encoding.UTF8"></see> encoding.</summary>
61 <param name="query">The query string to parse.</param>
62 <returns>A <see cref="T:System.Collections.Specialized.NameValueCollection"></see> of query parameters and values.</returns>
63 <exception cref="T:System.ArgumentNullException"><paramref name="query">query</paramref> is null.</exception>
65 <member name="M:System.Web.HttpUtility.ParseQueryString(System.String,System.Text.Encoding)">
66 <summary>Parses a query string into a <see cref="T:System.Collections.Specialized.NameValueCollection"></see> using the specified <see cref="T:System.Text.Encoding"></see>.</summary>
67 <param name="query">The query string to parse.</param>
68 <param name="encoding">The <see cref="T:System.Text.Encoding"></see> to use.</param>
69 <returns>A <see cref="T:System.Collections.Specialized.NameValueCollection"></see> of query parameters and values.</returns>
70 <exception cref="T:System.ArgumentNullException"><paramref name="query">query</paramref> is null. - or - <paramref name="encoding">encoding</paramref> is null.</exception>
72 <member name="M:System.Web.HttpUtility.UrlDecode(System.String,System.Text.Encoding)">
73 <summary>Converts a URL-encoded string into a decoded string, using the specified encoding object.</summary>
74 <param name="str"></param>
75 <param name="e">The <see cref="T:System.Text.Encoding"></see> that specifies the decoding scheme.</param>
76 <returns>A decoded string.</returns>
78 <member name="M:System.Web.HttpUtility.UrlDecode(System.Byte[],System.Int32,System.Int32,System.Text.Encoding)">
79 <summary>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.</summary>
80 <param name="bytes">The array of bytes to decode.</param>
81 <param name="offset">The position in the byte to begin decoding.</param>
82 <param name="count">The number of bytes to decode.</param>
83 <param name="e">The <see cref="T:System.Text.Encoding"></see> object that specifies the decoding scheme.</param>
84 <returns>A decoded string.</returns>
85 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null, but <paramref name="count">count</paramref> does not equal 0.</exception>
86 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="offset">offset</paramref> is less than 0 or greater than the length of the <paramref name="bytes">bytes</paramref> array. - or - <paramref name="count">count</paramref> is less than 0, or <paramref name="count">count</paramref> + <paramref name="offset">offset</paramref> is greater than the length of the <paramref name="bytes">bytes</paramref> array.</exception>
88 <member name="M:System.Web.HttpUtility.UrlDecode(System.String)">
89 <summary>Converts a string that has been encoded for transmission in a URL into a decoded string.</summary>
90 <param name="str">The string to decode.</param>
91 <returns>A decoded string.</returns>
93 <member name="M:System.Web.HttpUtility.UrlDecode(System.Byte[],System.Text.Encoding)">
94 <summary>Converts a URL-encoded byte array into a decoded string using the specified decoding object.</summary>
95 <param name="bytes">The array of bytes to decode.</param>
96 <param name="e">The <see cref="T:System.Text.Encoding"></see> that specifies the decoding scheme.</param>
97 <returns>A decoded string.</returns>
99 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.Byte[])">
100 <summary>Converts a URL-encoded array of bytes into a decoded array of bytes.</summary>
101 <param name="bytes">The array of bytes to decode.</param>
102 <returns>A decoded array of bytes.</returns>
104 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.String)">
105 <summary>Converts a URL-encoded string into a decoded array of bytes.</summary>
106 <param name="str">The string to decode.</param>
107 <returns>A decoded array of bytes.</returns>
109 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.String,System.Text.Encoding)">
110 <summary>Converts a URL-encoded string into a decoded array of bytes using the specified decoding object.</summary>
111 <param name="str">The string to decode.</param>
112 <param name="e">The <see cref="T:System.Text.Encoding"></see> object that specifies the decoding scheme.</param>
113 <returns>A decoded array of bytes.</returns>
115 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.Byte[],System.Int32,System.Int32)">
116 <summary>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.</summary>
117 <param name="bytes">The array of bytes to decode.</param>
118 <param name="offset">The position in the byte array at which to begin decoding.</param>
119 <param name="count">The number of bytes to decode.</param>
120 <returns>A decoded array of bytes.</returns>
121 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null, but <paramref name="count">count</paramref> does not equal 0.</exception>
122 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="offset">offset</paramref> is less than 0 or greater than the length of the <paramref name="bytes">bytes</paramref> array. - or - <paramref name="count">count</paramref> is less than 0, or <paramref name="count">count</paramref> + <paramref name="offset">offset</paramref> is greater than the length of the <paramref name="bytes">bytes</paramref> array.</exception>
124 <member name="M:System.Web.HttpUtility.UrlEncode(System.Byte[],System.Int32,System.Int32)">
125 <summary>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.</summary>
126 <param name="bytes">The array of bytes to encode.</param>
127 <param name="offset">The position in the byte array at which to begin encoding.</param>
128 <param name="count">The number of bytes to encode.</param>
129 <returns>An encoded string.</returns>
131 <member name="M:System.Web.HttpUtility.UrlEncode(System.String,System.Text.Encoding)">
132 <summary>Encodes a URL string using the specified encoding object.</summary>
133 <param name="str"></param>
134 <param name="e"></param>
135 <returns>An encoded string.</returns>
137 <member name="M:System.Web.HttpUtility.UrlEncode(System.Byte[])">
138 <summary>Converts a byte array into an encoded URL string.</summary>
139 <param name="bytes">The array of bytes to encode.</param>
140 <returns>An encoded string.</returns>
142 <member name="M:System.Web.HttpUtility.UrlEncode(System.String)">
143 <summary>Encodes a URL string.</summary>
144 <param name="str">The text to encode.</param>
145 <returns>An encoded string.</returns>
147 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.Byte[])">
148 <summary>Converts an array of bytes into a URL-encoded array of bytes.</summary>
149 <param name="bytes">The array of bytes to encode.</param>
150 <returns>An encoded array of bytes.</returns>
152 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.String)">
153 <summary>Converts a string into a URL-encoded array of bytes.</summary>
154 <param name="str">The string to encode.</param>
155 <returns>An encoded array of bytes.</returns>
157 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.String,System.Text.Encoding)">
158 <summary>Converts a string into a URL-encoded array of bytes using the specified encoding object.</summary>
159 <param name="str">The string to encode</param>
160 <param name="e">The <see cref="T:System.Text.Encoding"></see> that specifies the encoding scheme.</param>
161 <returns>An encoded array of bytes.</returns>
163 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.Byte[],System.Int32,System.Int32)">
164 <summary>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.</summary>
165 <param name="bytes">The array of bytes to encode.</param>
166 <param name="offset">The position in the byte array at which to begin encoding.</param>
167 <param name="count">The number of bytes to encode.</param>
168 <returns>An encoded array of bytes.</returns>
169 <exception cref="T:System.ArgumentNullException"><paramref name="bytes">bytes</paramref> is null, but <paramref name="count">count</paramref> does not equal 0.</exception>
170 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="offset">offset</paramref> is less than 0 or greater than the length of the <paramref name="bytes">bytes</paramref> array. - or - <paramref name="count">count</paramref> is less than 0, or <paramref name="count">count</paramref> + <paramref name="offset">offset</paramref> is greater than the length of the <paramref name="bytes">bytes</paramref> array.</exception>
172 <member name="M:System.Web.HttpUtility.UrlEncodeUnicode(System.String)">
173 <summary>Converts a string into a Unicode string.</summary>
174 <param name="str">The string to convert.</param>
175 <returns>A Unicode string in %<paramref name="UnicodeValue">UnicodeValue</paramref> notation.</returns>
177 <member name="M:System.Web.HttpUtility.UrlEncodeUnicodeToBytes(System.String)">
178 <summary>Converts a Unicode string into an array of bytes.</summary>
179 <param name="str">The string to convert.</param>
180 <returns>A byte array.</returns>
182 <member name="M:System.Web.HttpUtility.UrlPathEncode(System.String)">
183 <summary>Do not use; intended only for browser compatibility. Use <see cref="M:System.Web.HttpUtility.UrlEncode(System.String)"></see>.</summary>
184 <param name="str"></param>
185 <returns>The encoded text.</returns>