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 <returns>A <see cref="T:System.Collections.Specialized.NameValueCollection" /> of query parameters and values.</returns>
63 <exception cref="T:System.ArgumentNullException">
64 <paramref name="query" /> is <see langword="null" />.</exception>
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 <returns>A <see cref="T:System.Collections.Specialized.NameValueCollection" /> of query parameters and values.</returns>
71 <exception cref="T:System.ArgumentNullException">
72 <paramref name="query" /> is <see langword="null" />.
74 <paramref name="encoding" /> is <see langword="null" />.</exception>
76 <member name="M:System.Web.HttpUtility.UrlDecode(System.Byte[],System.Int32,System.Int32,System.Text.Encoding)">
77 <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>
78 <param name="bytes">The array of bytes to decode.</param>
79 <param name="offset">The position in the byte to begin decoding.</param>
80 <param name="count">The number of bytes to decode.</param>
81 <param name="e">The <see cref="T:System.Text.Encoding" /> object that specifies the decoding scheme.</param>
82 <returns>A decoded string.</returns>
83 <exception cref="T:System.ArgumentNullException">
84 <paramref name="bytes" /> is <see langword="null" />, but <paramref name="count" /> does not equal <see langword="0" />.</exception>
85 <exception cref="T:System.ArgumentOutOfRangeException">
86 <paramref name="offset" /> is less than <see langword="0" /> or greater than the length of the <paramref name="bytes" /> array.
88 <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>
90 <member name="M:System.Web.HttpUtility.UrlDecode(System.Byte[],System.Text.Encoding)">
91 <summary>Converts a URL-encoded byte array into a decoded string using the specified decoding object.</summary>
92 <param name="bytes">The array of bytes to decode.</param>
93 <param name="e">The <see cref="T:System.Text.Encoding" /> that specifies the decoding scheme.</param>
94 <returns>A decoded string.</returns>
96 <member name="M:System.Web.HttpUtility.UrlDecode(System.String)">
97 <summary>Converts a string that has been encoded for transmission in a URL into a decoded string.</summary>
98 <param name="str">The string to decode.</param>
99 <returns>A decoded string.</returns>
101 <member name="M:System.Web.HttpUtility.UrlDecode(System.String,System.Text.Encoding)">
102 <summary>Converts a URL-encoded string into a decoded string, using the specified encoding object.</summary>
103 <param name="str">The string to decode.</param>
104 <param name="e">The <see cref="T:System.Text.Encoding" /> that specifies the decoding scheme.</param>
105 <returns>A decoded string.</returns>
107 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.Byte[])">
108 <summary>Converts a URL-encoded array of bytes into a decoded array of bytes.</summary>
109 <param name="bytes">The array of bytes to decode.</param>
110 <returns>A decoded array of bytes.</returns>
112 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.Byte[],System.Int32,System.Int32)">
113 <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>
114 <param name="bytes">The array of bytes to decode.</param>
115 <param name="offset">The position in the byte array at which to begin decoding.</param>
116 <param name="count">The number of bytes to decode.</param>
117 <returns>A decoded array of bytes.</returns>
118 <exception cref="T:System.ArgumentNullException">
119 <paramref name="bytes" /> is <see langword="null" />, but <paramref name="count" /> does not equal <see langword="0" />.</exception>
120 <exception cref="T:System.ArgumentOutOfRangeException">
121 <paramref name="offset" /> is less than <see langword="0" /> or greater than the length of the <paramref name="bytes" /> array.
123 <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>
125 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.String)">
126 <summary>Converts a URL-encoded string into a decoded array of bytes.</summary>
127 <param name="str">The string to decode.</param>
128 <returns>A decoded array of bytes.</returns>
130 <member name="M:System.Web.HttpUtility.UrlDecodeToBytes(System.String,System.Text.Encoding)">
131 <summary>Converts a URL-encoded string into a decoded array of bytes using the specified decoding object.</summary>
132 <param name="str">The string to decode.</param>
133 <param name="e">The <see cref="T:System.Text.Encoding" /> object that specifies the decoding scheme.</param>
134 <returns>A decoded array of bytes.</returns>
136 <member name="M:System.Web.HttpUtility.UrlEncode(System.Byte[])">
137 <summary>Converts a byte array into an encoded URL string.</summary>
138 <param name="bytes">The array of bytes to encode.</param>
139 <returns>An encoded string.</returns>
141 <member name="M:System.Web.HttpUtility.UrlEncode(System.Byte[],System.Int32,System.Int32)">
142 <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>
143 <param name="bytes">The array of bytes to encode.</param>
144 <param name="offset">The position in the byte array at which to begin encoding.</param>
145 <param name="count">The number of bytes to encode.</param>
146 <returns>An encoded string.</returns>
148 <member name="M:System.Web.HttpUtility.UrlEncode(System.String)">
149 <summary>Encodes a URL string.</summary>
150 <param name="str">The text to encode.</param>
151 <returns>An encoded string.</returns>
153 <member name="M:System.Web.HttpUtility.UrlEncode(System.String,System.Text.Encoding)">
154 <summary>Encodes a URL string using the specified encoding object.</summary>
155 <param name="str">The text to encode.</param>
156 <param name="e">The <see cref="T:System.Text.Encoding" /> object that specifies the encoding scheme.</param>
157 <returns>An encoded string.</returns>
159 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.Byte[])">
160 <summary>Converts an array of bytes into a URL-encoded array of bytes.</summary>
161 <param name="bytes">The array of bytes to encode.</param>
162 <returns>An encoded array of bytes.</returns>
164 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.Byte[],System.Int32,System.Int32)">
165 <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>
166 <param name="bytes">The array of bytes to encode.</param>
167 <param name="offset">The position in the byte array at which to begin encoding.</param>
168 <param name="count">The number of bytes to encode.</param>
169 <returns>An encoded array of bytes.</returns>
170 <exception cref="T:System.ArgumentNullException">
171 <paramref name="bytes" /> is <see langword="null" />, but <paramref name="count" /> does not equal <see langword="0" />.</exception>
172 <exception cref="T:System.ArgumentOutOfRangeException">
173 <paramref name="offset" /> is less than <see langword="0" /> or greater than the length of the <paramref name="bytes" /> array.
175 <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>
177 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.String)">
178 <summary>Converts a string into a URL-encoded array of bytes.</summary>
179 <param name="str">The string to encode.</param>
180 <returns>An encoded array of bytes.</returns>
182 <member name="M:System.Web.HttpUtility.UrlEncodeToBytes(System.String,System.Text.Encoding)">
183 <summary>Converts a string into a URL-encoded array of bytes using the specified encoding object.</summary>
184 <param name="str">The string to encode</param>
185 <param name="e">The <see cref="T:System.Text.Encoding" /> that specifies the encoding scheme.</param>
186 <returns>An encoded array of bytes.</returns>
188 <member name="M:System.Web.HttpUtility.UrlEncodeUnicode(System.String)">
189 <summary>Converts a string into a Unicode string.</summary>
190 <param name="str">The string to convert.</param>
191 <returns>A Unicode string in %<paramref name="UnicodeValue" /> notation.</returns>
193 <member name="M:System.Web.HttpUtility.UrlEncodeUnicodeToBytes(System.String)">
194 <summary>Converts a Unicode string into an array of bytes.</summary>
195 <param name="str">The string to convert.</param>
196 <returns>A byte array.</returns>
198 <member name="M:System.Web.HttpUtility.UrlPathEncode(System.String)">
199 <summary>Do not use; intended only for browser compatibility. Use <see cref="M:System.Web.HttpUtility.UrlEncode(System.String)" />.</summary>
200 <param name="str">The text to encode.</param>
201 <returns>The encoded text.</returns>