1 <?xml version="1.0" encoding="utf-8"?>
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" /> 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" /> output stream.</summary>
20 <param name="s">The string to encode.</param>
21 <param name="output">A <see cref="T:System.IO.TextWriter" /> 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" /> output stream.</summary>
30 <param name="s">The string to decode.</param>
31 <param name="output">A <see cref="T:System.IO.TextWriter" /> 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" /> stream of output.</summary>
45 <param name="s">The string to encode.</param>
46 <param name="output">A <see cref="T:System.IO.TextWriter" /> 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" /> using <see cref="P:System.Text.Encoding.UTF8" /> encoding.</summary>
61 <param name="query">The query string to parse.</param>
62 <exception cref="T:System.ArgumentNullException">
63 <paramref name="query" /> is <see langword="null" />.</exception>
64 <returns>A <see cref="T:System.Collections.Specialized.NameValueCollection" /> of query parameters and values.</returns>
66 <member name="M:System.Web.HttpUtility.ParseQueryString(System.String,System.Text.Encoding)">
67 <summary>Parses a query string into a <see cref="T:System.Collections.Specialized.NameValueCollection" /> using the specified <see cref="T:System.Text.Encoding" />.</summary>
68 <param name="query">The query string to parse.</param>
69 <param name="encoding">The <see cref="T:System.Text.Encoding" /> to use.</param>
70 <exception cref="T:System.ArgumentNullException">
71 <paramref name="query" /> is <see langword="null" />.
75 <paramref name="encoding" /> is <see langword="null" />.</exception>
76 <returns>A <see cref="T:System.Collections.Specialized.NameValueCollection" /> of query parameters and values.</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" /> object that specifies the decoding scheme.</param>
84 <exception cref="T:System.ArgumentNullException">
85 <paramref name="bytes" /> is <see langword="null" />, but <paramref name="count" /> does not equal <see langword="0" />.</exception>
86 <exception cref="T:System.ArgumentOutOfRangeException">
87 <paramref name="offset" /> is less than <see langword="0" /> or greater than the length of the <paramref name="bytes" /> array.
91 <paramref name="count" /> is less than <see langword="0" />, or <paramref name="count" /> + <paramref name="offset" /> is greater than the length of the <paramref name="bytes" /> array.</exception>
92 <returns>A decoded string.</returns>
94 <member name="M:System.Web.HttpUtility.UrlDecode(System.Byte[],System.Text.Encoding)">
95 <summary>Converts a URL-encoded byte array into a decoded string using the specified decoding object.</summary>
96 <param name="bytes">The array of bytes to decode.</param>
97 <param name="e">The <see cref="T:System.Text.Encoding" /> that specifies the decoding scheme.</param>
98 <returns>A decoded string.</returns>
100 <member name="M:System.Web.HttpUtility.UrlDecode(System.String)">
101 <summary>Converts a string that has been encoded for transmission in a URL into a decoded string.</summary>
102 <param name="str">The string to decode.</param>
103 <returns>A decoded string.</returns>
105 <member name="M:System.Web.HttpUtility.UrlDecode(System.String,System.Text.Encoding)">
106 <summary>Converts a URL-encoded string into a decoded string, using the specified encoding object.</summary>
107 <param name="str">The string to decode.</param>
108 <param name="e">The <see cref="T:System.Text.Encoding" /> that specifies the decoding scheme.</param>
109 <returns>A decoded string.</returns>
111 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.Byte[])">
112 <summary>Converts a URL-encoded array of bytes into a decoded array of bytes.</summary>
113 <param name="bytes">The array of bytes to decode.</param>
114 <returns>A decoded array of bytes.</returns>
116 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.Byte[],System.Int32,System.Int32)">
117 <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>
118 <param name="bytes">The array of bytes to decode.</param>
119 <param name="offset">The position in the byte array at which to begin decoding.</param>
120 <param name="count">The number of bytes to decode.</param>
121 <exception cref="T:System.ArgumentNullException">
122 <paramref name="bytes" /> is <see langword="null" />, but <paramref name="count" /> does not equal <see langword="0" />.</exception>
123 <exception cref="T:System.ArgumentOutOfRangeException">
124 <paramref name="offset" /> is less than <see langword="0" /> or greater than the length of the <paramref name="bytes" /> array.
128 <paramref name="count" /> is less than <see langword="0" />, or <paramref name="count" /> + <paramref name="offset" /> is greater than the length of the <paramref name="bytes" /> array.</exception>
129 <returns>A decoded array of bytes.</returns>
131 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.String)">
132 <summary>Converts a URL-encoded string into a decoded array of bytes.</summary>
133 <param name="str">The string to decode.</param>
134 <returns>A decoded array of bytes.</returns>
136 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.String,System.Text.Encoding)">
137 <summary>Converts a URL-encoded string into a decoded array of bytes using the specified decoding object.</summary>
138 <param name="str">The string to decode.</param>
139 <param name="e">The <see cref="T:System.Text.Encoding" /> object that specifies the decoding scheme.</param>
140 <returns>A decoded array of bytes.</returns>
142 <member name="M:System.Web.HttpUtility.UrlEncode(System.Byte[])">
143 <summary>Converts a byte array into an encoded URL string.</summary>
144 <param name="bytes">The array of bytes to encode.</param>
145 <returns>An encoded string.</returns>
147 <member name="M:System.Web.HttpUtility.UrlEncode(System.Byte[],System.Int32,System.Int32)">
148 <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>
149 <param name="bytes">The array of bytes to encode.</param>
150 <param name="offset">The position in the byte array at which to begin encoding.</param>
151 <param name="count">The number of bytes to encode.</param>
152 <returns>An encoded string.</returns>
154 <member name="M:System.Web.HttpUtility.UrlEncode(System.String)">
155 <summary>Encodes a URL string.</summary>
156 <param name="str">The text to encode.</param>
157 <returns>An encoded string.</returns>
159 <member name="M:System.Web.HttpUtility.UrlEncode(System.String,System.Text.Encoding)">
160 <summary>Encodes a URL string using the specified encoding object.</summary>
161 <param name="str">The text to encode.</param>
162 <param name="e">The <see cref="T:System.Text.Encoding" /> object that specifies the encoding scheme.</param>
163 <returns>An encoded string.</returns>
165 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.Byte[])">
166 <summary>Converts an array of bytes into a URL-encoded array of bytes.</summary>
167 <param name="bytes">The array of bytes to encode.</param>
168 <returns>An encoded array of bytes.</returns>
170 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.Byte[],System.Int32,System.Int32)">
171 <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>
172 <param name="bytes">The array of bytes to encode.</param>
173 <param name="offset">The position in the byte array at which to begin encoding.</param>
174 <param name="count">The number of bytes to encode.</param>
175 <exception cref="T:System.ArgumentNullException">
176 <paramref name="bytes" /> is <see langword="null" />, but <paramref name="count" /> does not equal <see langword="0" />.</exception>
177 <exception cref="T:System.ArgumentOutOfRangeException">
178 <paramref name="offset" /> is less than <see langword="0" /> or greater than the length of the <paramref name="bytes" /> array.
182 <paramref name="count" /> is less than <see langword="0" />, or <paramref name="count" /> + <paramref name="offset" /> is greater than the length of the <paramref name="bytes" /> array.</exception>
183 <returns>An encoded array of bytes.</returns>
185 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.String)">
186 <summary>Converts a string into a URL-encoded array of bytes.</summary>
187 <param name="str">The string to encode.</param>
188 <returns>An encoded array of bytes.</returns>
190 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.String,System.Text.Encoding)">
191 <summary>Converts a string into a URL-encoded array of bytes using the specified encoding object.</summary>
192 <param name="str">The string to encode.</param>
193 <param name="e">The <see cref="T:System.Text.Encoding" /> that specifies the encoding scheme.</param>
194 <returns>An encoded array of bytes.</returns>
196 <member name="M:System.Web.HttpUtility.UrlEncodeUnicode(System.String)">
197 <summary>Converts a string into a Unicode string.</summary>
198 <param name="str">The string to convert.</param>
199 <returns>A Unicode string in %<paramref name="UnicodeValue" /> notation.</returns>
201 <member name="M:System.Web.HttpUtility.UrlEncodeUnicodeToBytes(System.String)">
202 <summary>Converts a Unicode string into an array of bytes.</summary>
203 <param name="str">The string to convert.</param>
204 <returns>A byte array.</returns>
206 <member name="M:System.Web.HttpUtility.UrlPathEncode(System.String)">
207 <summary>Do not use; intended only for browser compatibility. Use <see cref="M:System.Web.HttpUtility.UrlEncode(System.String)" />.</summary>
208 <param name="str">The text to encode.</param>
209 <returns>The encoded text.</returns>