1 <?xml version="1.0" encoding="utf-8"?>
4 <name>System.Net.WebHeaderCollection</name>
7 <member name="T:System.Net.HttpRequestHeader">
8 <summary>The HTTP headers that may be specified in a client request.</summary>
10 <member name="F:System.Net.HttpRequestHeader.Accept">
11 <summary>The Accept header, which specifies the MIME types that are acceptable for the response.</summary>
13 <member name="F:System.Net.HttpRequestHeader.AcceptCharset">
14 <summary>The Accept-Charset header, which specifies the character sets that are acceptable for the response.</summary>
16 <member name="F:System.Net.HttpRequestHeader.AcceptEncoding">
17 <summary>The Accept-Encoding header, which specifies the content encodings that are acceptable for the response.</summary>
19 <member name="F:System.Net.HttpRequestHeader.AcceptLanguage">
20 <summary>The Accept-Language header, which specifies that natural languages that are preferred for the response.</summary>
22 <member name="F:System.Net.HttpRequestHeader.Allow">
23 <summary>The Allow header, which specifies the set of HTTP methods supported.</summary>
25 <member name="F:System.Net.HttpRequestHeader.Authorization">
26 <summary>The Authorization header, which specifies the credentials that the client presents in order to authenticate itself to the server.</summary>
28 <member name="F:System.Net.HttpRequestHeader.CacheControl">
29 <summary>The Cache-Control header, which specifies directives that must be obeyed by all cache control mechanisms along the request/response chain.</summary>
31 <member name="F:System.Net.HttpRequestHeader.Connection">
32 <summary>The Connection header, which specifies options that are desired for a particular connection.</summary>
34 <member name="F:System.Net.HttpRequestHeader.ContentEncoding">
35 <summary>The Content-Encoding header, which specifies the encodings that have been applied to the accompanying body data.</summary>
37 <member name="F:System.Net.HttpRequestHeader.ContentLanguage">
38 <summary>The Content-Language header, which specifies the natural language(s) of the accompanying body data.</summary>
40 <member name="F:System.Net.HttpRequestHeader.ContentLength">
41 <summary>The Content-Length header, which specifies the length, in bytes, of the accompanying body data.</summary>
43 <member name="F:System.Net.HttpRequestHeader.ContentLocation">
44 <summary>The Content-Location header, which specifies a URI from which the accompanying body may be obtained.</summary>
46 <member name="F:System.Net.HttpRequestHeader.ContentMd5">
47 <summary>The Content-MD5 header, which specifies the MD5 digest of the accompanying body data, for the purpose of providing an end-to-end message integrity check. Due to collision problems with MD5, Microsoft recommends a security model based on SHA256 or better.</summary>
49 <member name="F:System.Net.HttpRequestHeader.ContentRange">
50 <summary>The Content-Range header, which specifies where in the full body the accompanying partial body data should be applied.</summary>
52 <member name="F:System.Net.HttpRequestHeader.ContentType">
53 <summary>The Content-Type header, which specifies the MIME type of the accompanying body data.</summary>
55 <member name="F:System.Net.HttpRequestHeader.Cookie">
56 <summary>The Cookie header, which specifies cookie data presented to the server.</summary>
58 <member name="F:System.Net.HttpRequestHeader.Date">
59 <summary>The Date header, which specifies the date and time at which the request originated.</summary>
61 <member name="F:System.Net.HttpRequestHeader.Expect">
62 <summary>The Expect header, which specifies particular server behaviors that are required by the client.</summary>
64 <member name="F:System.Net.HttpRequestHeader.Expires">
65 <summary>The Expires header, which specifies the date and time after which the accompanying body data should be considered stale.</summary>
67 <member name="F:System.Net.HttpRequestHeader.From">
68 <summary>The From header, which specifies an Internet Email address for the human user who controls the requesting user agent.</summary>
70 <member name="F:System.Net.HttpRequestHeader.Host">
71 <summary>The Host header, which specifies the host name and port number of the resource being requested.</summary>
73 <member name="F:System.Net.HttpRequestHeader.IfMatch">
74 <summary>The If-Match header, which specifies that the requested operation should be performed only if the client's cached copy of the indicated resource is current.</summary>
76 <member name="F:System.Net.HttpRequestHeader.IfModifiedSince">
77 <summary>The If-Modified-Since header, which specifies that the requested operation should be performed only if the requested resource has been modified since the indicated data and time.</summary>
79 <member name="F:System.Net.HttpRequestHeader.IfNoneMatch">
80 <summary>The If-None-Match header, which specifies that the requested operation should be performed only if none of client's cached copies of the indicated resources are current.</summary>
82 <member name="F:System.Net.HttpRequestHeader.IfRange">
83 <summary>The If-Range header, which specifies that only the specified range of the requested resource should be sent, if the client's cached copy is current.</summary>
85 <member name="F:System.Net.HttpRequestHeader.IfUnmodifiedSince">
86 <summary>The If-Unmodified-Since header, which specifies that the requested operation should be performed only if the requested resource has not been modified since the indicated date and time.</summary>
88 <member name="F:System.Net.HttpRequestHeader.KeepAlive">
89 <summary>The Keep-Alive header, which specifies a parameter used into order to maintain a persistent connection.</summary>
91 <member name="F:System.Net.HttpRequestHeader.LastModified">
92 <summary>The Last-Modified header, which specifies the date and time at which the accompanying body data was last modified.</summary>
94 <member name="F:System.Net.HttpRequestHeader.MaxForwards">
95 <summary>The Max-Forwards header, which specifies an integer indicating the remaining number of times that this request may be forwarded.</summary>
97 <member name="F:System.Net.HttpRequestHeader.Pragma">
98 <summary>The Pragma header, which specifies implementation-specific directives that might apply to any agent along the request/response chain.</summary>
100 <member name="F:System.Net.HttpRequestHeader.ProxyAuthorization">
101 <summary>The Proxy-Authorization header, which specifies the credentials that the client presents in order to authenticate itself to a proxy.</summary>
103 <member name="F:System.Net.HttpRequestHeader.Range">
104 <summary>The Range header, which specifies the sub-range(s) of the response that the client requests be returned in lieu of the entire response.</summary>
106 <member name="F:System.Net.HttpRequestHeader.Referer">
107 <summary>The Referer header, which specifies the URI of the resource from which the request URI was obtained.</summary>
109 <member name="F:System.Net.HttpRequestHeader.Te">
110 <summary>The TE header, which specifies the transfer encodings that are acceptable for the response.</summary>
112 <member name="F:System.Net.HttpRequestHeader.Trailer">
113 <summary>The Trailer header, which specifies the header fields present in the trailer of a message encoded with chunked transfer-coding.</summary>
115 <member name="F:System.Net.HttpRequestHeader.TransferEncoding">
116 <summary>The Transfer-Encoding header, which specifies what (if any) type of transformation that has been applied to the message body.</summary>
118 <member name="F:System.Net.HttpRequestHeader.Translate">
119 <summary>The Translate header, a Microsoft extension to the HTTP specification used in conjunction with WebDAV functionality.</summary>
121 <member name="F:System.Net.HttpRequestHeader.Upgrade">
122 <summary>The Upgrade header, which specifies additional communications protocols that the client supports.</summary>
124 <member name="F:System.Net.HttpRequestHeader.UserAgent">
125 <summary>The User-Agent header, which specifies information about the client agent.</summary>
127 <member name="F:System.Net.HttpRequestHeader.Via">
128 <summary>The Via header, which specifies intermediate protocols to be used by gateway and proxy agents.</summary>
130 <member name="F:System.Net.HttpRequestHeader.Warning">
131 <summary>The Warning header, which specifies additional information about that status or transformation of a message that might not be reflected in the message.</summary>
133 <member name="T:System.Net.HttpResponseHeader">
134 <summary>The HTTP headers that can be specified in a server response.</summary>
136 <member name="F:System.Net.HttpResponseHeader.AcceptRanges">
137 <summary>The Accept-Ranges header, which specifies the range that is accepted by the server.</summary>
139 <member name="F:System.Net.HttpResponseHeader.Age">
140 <summary>The Age header, which specifies the time, in seconds, since the response was generated by the originating server.</summary>
142 <member name="F:System.Net.HttpResponseHeader.Allow">
143 <summary>The Allow header, which specifies the set of HTTP methods that are supported.</summary>
145 <member name="F:System.Net.HttpResponseHeader.CacheControl">
146 <summary>The Cache-Control header, which specifies caching directives that must be obeyed by all caching mechanisms along the request/response chain.</summary>
148 <member name="F:System.Net.HttpResponseHeader.Connection">
149 <summary>The Connection header, which specifies options that are desired for a particular connection.</summary>
151 <member name="F:System.Net.HttpResponseHeader.ContentEncoding">
152 <summary>The Content-Encoding header, which specifies the encodings that have been applied to the accompanying body data.</summary>
154 <member name="F:System.Net.HttpResponseHeader.ContentLanguage">
155 <summary>The Content-Language header, which specifies the natural language or languages of the accompanying body data.</summary>
157 <member name="F:System.Net.HttpResponseHeader.ContentLength">
158 <summary>The Content-Length header, which specifies the length, in bytes, of the accompanying body data.</summary>
160 <member name="F:System.Net.HttpResponseHeader.ContentLocation">
161 <summary>The Content-Location header, which specifies a URI from which the accompanying body can be obtained.</summary>
163 <member name="F:System.Net.HttpResponseHeader.ContentMd5">
164 <summary>The Content-MD5 header, which specifies the MD5 digest of the accompanying body data, for the purpose of providing an end-to-end message integrity check. Due to collision problems with MD5, Microsoft recommends a security model based on SHA256 or better.</summary>
166 <member name="F:System.Net.HttpResponseHeader.ContentRange">
167 <summary>The Range header, which specifies the subrange or subranges of the response that the client requests be returned in lieu of the entire response.</summary>
169 <member name="F:System.Net.HttpResponseHeader.ContentType">
170 <summary>The Content-Type header, which specifies the MIME type of the accompanying body data.</summary>
172 <member name="F:System.Net.HttpResponseHeader.Date">
173 <summary>The Date header, which specifies the date and time at which the response originated.</summary>
175 <member name="F:System.Net.HttpResponseHeader.ETag">
176 <summary>The Etag header, which specifies the current value for the requested variant.</summary>
178 <member name="F:System.Net.HttpResponseHeader.Expires">
179 <summary>The Expires header, which specifies the date and time after which the accompanying body data should be considered stale.</summary>
181 <member name="F:System.Net.HttpResponseHeader.KeepAlive">
182 <summary>The Keep-Alive header, which specifies a parameter to be used to maintain a persistent connection.</summary>
184 <member name="F:System.Net.HttpResponseHeader.LastModified">
185 <summary>The Last-Modified header, which specifies the date and time at which the accompanying body data was last modified.</summary>
187 <member name="F:System.Net.HttpResponseHeader.Location">
188 <summary>The Location header, which specifies a URI to which the client is redirected to obtain the requested resource.</summary>
190 <member name="F:System.Net.HttpResponseHeader.Pragma">
191 <summary>The Pragma header, which specifies implementation-specific directives that might apply to any agent along the request/response chain.</summary>
193 <member name="F:System.Net.HttpResponseHeader.ProxyAuthenticate">
194 <summary>The Proxy-Authenticate header, which specifies that the client must authenticate itself to a proxy.</summary>
196 <member name="F:System.Net.HttpResponseHeader.RetryAfter">
197 <summary>The Retry-After header, which specifies a time (in seconds), or a date and time, after which the client can retry its request.</summary>
199 <member name="F:System.Net.HttpResponseHeader.Server">
200 <summary>The Server header, which specifies information about the originating server agent.</summary>
202 <member name="F:System.Net.HttpResponseHeader.SetCookie">
203 <summary>The Set-Cookie header, which specifies cookie data that is presented to the client.</summary>
205 <member name="F:System.Net.HttpResponseHeader.Trailer">
206 <summary>The Trailer header, which specifies that the indicated header fields are present in the trailer of a message that is encoded with chunked transfer-coding.</summary>
208 <member name="F:System.Net.HttpResponseHeader.TransferEncoding">
209 <summary>The Transfer-Encoding header, which specifies what (if any) type of transformation has been applied to the message body.</summary>
211 <member name="F:System.Net.HttpResponseHeader.Upgrade">
212 <summary>The Upgrade header, which specifies additional communications protocols that the client supports.</summary>
214 <member name="F:System.Net.HttpResponseHeader.Vary">
215 <summary>The Vary header, which specifies the request headers that are used to determine whether a cached response is fresh.</summary>
217 <member name="F:System.Net.HttpResponseHeader.Via">
218 <summary>The Via header, which specifies intermediate protocols to be used by gateway and proxy agents.</summary>
220 <member name="F:System.Net.HttpResponseHeader.Warning">
221 <summary>The Warning header, which specifies additional information about that status or transformation of a message that might not be reflected in the message.</summary>
223 <member name="F:System.Net.HttpResponseHeader.WwwAuthenticate">
224 <summary>The WWW-Authenticate header, which specifies that the client must authenticate itself to the server.</summary>
226 <member name="T:System.Net.WebHeaderCollection">
227 <summary>Contains protocol headers associated with a request or response.</summary>
229 <member name="M:System.Net.WebHeaderCollection.#ctor">
230 <summary>Initializes a new instance of the <see cref="T:System.Net.WebHeaderCollection" /> class.</summary>
232 <member name="M:System.Net.WebHeaderCollection.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
233 <summary>Initializes a new instance of the <see cref="T:System.Net.WebHeaderCollection" /> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> classes.</summary>
234 <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> containing the information required to serialize the <see cref="T:System.Net.WebHeaderCollection" />.</param>
235 <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> containing the source of the serialized stream associated with the new <see cref="T:System.Net.WebHeaderCollection" />.</param>
236 <exception cref="T:System.ArgumentException">
237 <paramref name="headerName" /> contains invalid characters.</exception>
238 <exception cref="T:System.ArgumentNullException">
239 <paramref name="headerName" /> is a null reference or <see cref="F:System.String.Empty" />.</exception>
241 <member name="M:System.Net.WebHeaderCollection.Add(System.Net.HttpRequestHeader,System.String)">
242 <summary>Inserts the specified header with the specified value into the collection.</summary>
243 <param name="header">The header to add to the collection.</param>
244 <param name="value">The content of the header.</param>
245 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value" /> is greater than 65535.</exception>
246 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection" /> instance does not allow instances of <see cref="T:System.Net.HttpRequestHeader" />.</exception>
248 <member name="M:System.Net.WebHeaderCollection.Add(System.Net.HttpResponseHeader,System.String)">
249 <summary>Inserts the specified header with the specified value into the collection.</summary>
250 <param name="header">The header to add to the collection.</param>
251 <param name="value">The content of the header.</param>
252 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value" /> is greater than 65535.</exception>
253 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection" /> instance does not allow instances of <see cref="T:System.Net.HttpResponseHeader" />.</exception>
255 <member name="M:System.Net.WebHeaderCollection.Add(System.String)">
256 <summary>Inserts the specified header into the collection.</summary>
257 <param name="header">The header to add, with the name and value separated by a colon.</param>
258 <exception cref="T:System.ArgumentNullException">
259 <paramref name="header" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
260 <exception cref="T:System.ArgumentException">
261 <paramref name="header" /> does not contain a colon (:) character.
262 The length of <paramref name="value" /> is greater than 65535.
264 The name part of <paramref name="header" /> is <see cref="F:System.String.Empty" /> or contains invalid characters.
266 <paramref name="header" /> is a restricted header that should be set with a property.
268 The value part of <paramref name="header" /> contains invalid characters.</exception>
269 <exception cref="T:System.ArgumentOutOfRangeException">The length the string after the colon (:) is greater than 65535.</exception>
271 <member name="M:System.Net.WebHeaderCollection.Add(System.String,System.String)">
272 <summary>Inserts a header with the specified name and value into the collection.</summary>
273 <param name="name">The header to add to the collection.</param>
274 <param name="value">The content of the header.</param>
275 <exception cref="T:System.ArgumentException">
276 <paramref name="name" /> is <see langword="null" />, <see cref="F:System.String.Empty" />, or contains invalid characters.
278 <paramref name="name" /> is a restricted header that must be set with a property setting.
280 <paramref name="value" /> contains invalid characters.</exception>
281 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value" /> is greater than 65535.</exception>
283 <member name="M:System.Net.WebHeaderCollection.AddWithoutValidate(System.String,System.String)">
284 <summary>Inserts a header into the collection without checking whether the header is on the restricted header list.</summary>
285 <param name="headerName">The header to add to the collection.</param>
286 <param name="headerValue">The content of the header.</param>
287 <exception cref="T:System.ArgumentException">
288 <paramref name="headerName" /> is <see langword="null" />, <see cref="F:System.String.Empty" />, or contains invalid characters.
290 <paramref name="headerValue" /> contains invalid characters.</exception>
291 <exception cref="T:System.ArgumentOutOfRangeException">
292 <paramref name="headerName" /> is not <see langword="null" /> and the length of <paramref name="headerValue" /> is too long (greater than 65,535 characters).</exception>
294 <member name="P:System.Net.WebHeaderCollection.AllKeys">
295 <summary>Gets all header names (keys) in the collection.</summary>
296 <returns>An array of type <see cref="T:System.String" /> containing all header names in a Web request.</returns>
298 <member name="M:System.Net.WebHeaderCollection.Clear">
299 <summary>Removes all headers from the collection.</summary>
301 <member name="P:System.Net.WebHeaderCollection.Count">
302 <summary>Gets the number of headers in the collection.</summary>
303 <returns>An <see cref="T:System.Int32" /> indicating the number of headers in a request.</returns>
305 <member name="M:System.Net.WebHeaderCollection.Get(System.Int32)">
306 <summary>Gets the value of a particular header in the collection, specified by an index into the collection.</summary>
307 <param name="index">The zero-based index of the key to get from the collection.</param>
308 <returns>A <see cref="T:System.String" /> containing the value of the specified header.</returns>
309 <exception cref="T:System.ArgumentOutOfRangeException">
310 <paramref name="index" /> is negative.
312 <paramref name="index" /> exceeds the size of the collection.</exception>
314 <member name="M:System.Net.WebHeaderCollection.Get(System.String)">
315 <summary>Gets the value of a particular header in the collection, specified by the name of the header.</summary>
316 <param name="name">The name of the Web header.</param>
317 <returns>A <see cref="T:System.String" /> holding the value of the specified header.</returns>
319 <member name="M:System.Net.WebHeaderCollection.GetEnumerator">
320 <summary>Returns an enumerator that can iterate through the <see cref="T:System.Net.WebHeaderCollection" /> instance.</summary>
321 <returns>An <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:System.Net.WebHeaderCollection" />.</returns>
323 <member name="M:System.Net.WebHeaderCollection.GetKey(System.Int32)">
324 <summary>Gets the header name at the specified position in the collection.</summary>
325 <param name="index">The zero-based index of the key to get from the collection.</param>
326 <returns>A <see cref="T:System.String" /> holding the header name.</returns>
327 <exception cref="T:System.ArgumentOutOfRangeException">
328 <paramref name="index" /> is negative.
330 <paramref name="index" /> exceeds the size of the collection.</exception>
332 <member name="M:System.Net.WebHeaderCollection.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
333 <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the target object.</summary>
334 <param name="serializationInfo">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> to populate with data.</param>
335 <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that specifies the destination for this serialization.</param>
337 <member name="M:System.Net.WebHeaderCollection.GetValues(System.Int32)">
338 <summary>Gets an array of header values stored in the <paramref name="index" /> position of the header collection.</summary>
339 <param name="index">The header index to return.</param>
340 <returns>An array of header strings.</returns>
342 <member name="M:System.Net.WebHeaderCollection.GetValues(System.String)">
343 <summary>Gets an array of header values stored in a header.</summary>
344 <param name="header">The header to return.</param>
345 <returns>An array of header strings.</returns>
347 <member name="M:System.Net.WebHeaderCollection.IsRestricted(System.String)">
348 <summary>Tests whether the specified HTTP header can be set for the request.</summary>
349 <param name="headerName">The header to test.</param>
351 <see langword="true" /> if the header is restricted; otherwise <see langword="false" />.</returns>
352 <exception cref="T:System.ArgumentNullException">
353 <paramref name="headerName" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
354 <exception cref="T:System.ArgumentException">
355 <paramref name="headerName" /> contains invalid characters.</exception>
357 <member name="M:System.Net.WebHeaderCollection.IsRestricted(System.String,System.Boolean)">
358 <summary>Tests whether the specified HTTP header can be set for the request or the response.</summary>
359 <param name="headerName">The header to test.</param>
360 <param name="response">Does the Framework test the response or the request?</param>
362 <see langword="true" /> if the header is restricted; otherwise, <see langword="false" />.</returns>
363 <exception cref="T:System.ArgumentNullException">
364 <paramref name="headerName" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
365 <exception cref="T:System.ArgumentException">
366 <paramref name="headerName" /> contains invalid characters.</exception>
368 <member name="P:System.Net.WebHeaderCollection.Item(System.Net.HttpRequestHeader)">
369 <summary>Gets or sets the specified request header.</summary>
370 <param name="header">The request header value.</param>
371 <returns>A <see cref="T:System.String" /> instance containing the specified header value.</returns>
372 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection" /> instance does not allow instances of <see cref="T:System.Net.HttpRequestHeader" />.</exception>
374 <member name="P:System.Net.WebHeaderCollection.Item(System.Net.HttpResponseHeader)">
375 <summary>Gets or sets the specified response header.</summary>
376 <param name="header">The response header value.</param>
377 <returns>A <see cref="T:System.String" /> instance containing the specified header.</returns>
378 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value" /> is greater than 65535.</exception>
379 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection" /> instance does not allow instances of <see cref="T:System.Net.HttpResponseHeader" />.</exception>
381 <member name="P:System.Net.WebHeaderCollection.Item(System.String)">
382 <param name="name" />
384 <member name="P:System.Net.WebHeaderCollection.Keys">
385 <summary>Gets the collection of header names (keys) in the collection.</summary>
386 <returns>A <see cref="T:System.Collections.Specialized.NameObjectCollectionBase.KeysCollection" /> containing all header names in a Web request.</returns>
388 <member name="M:System.Net.WebHeaderCollection.OnDeserialization(System.Object)">
389 <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface and raises the deserialization event when the deserialization is complete.</summary>
390 <param name="sender">The source of the deserialization event.</param>
392 <member name="M:System.Net.WebHeaderCollection.Remove(System.Net.HttpRequestHeader)">
393 <summary>Removes the specified header from the collection.</summary>
394 <param name="header">The <see cref="T:System.Net.HttpRequestHeader" /> instance to remove from the collection.</param>
395 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection" /> instance does not allow instances of <see cref="T:System.Net.HttpRequestHeader" />.</exception>
397 <member name="M:System.Net.WebHeaderCollection.Remove(System.Net.HttpResponseHeader)">
398 <summary>Removes the specified header from the collection.</summary>
399 <param name="header">The <see cref="T:System.Net.HttpResponseHeader" /> instance to remove from the collection.</param>
400 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection" /> instance does not allow instances of <see cref="T:System.Net.HttpResponseHeader" />.</exception>
402 <member name="M:System.Net.WebHeaderCollection.Remove(System.String)">
403 <summary>Removes the specified header from the collection.</summary>
404 <param name="name">The name of the header to remove from the collection.</param>
405 <exception cref="T:System.ArgumentNullException">
406 <paramref name="name" /> is <see langword="null" /><see cref="F:System.String.Empty" />.</exception>
407 <exception cref="T:System.ArgumentException">
408 <paramref name="name" /> is a restricted header.
410 <paramref name="name" /> contains invalid characters.</exception>
412 <member name="M:System.Net.WebHeaderCollection.Set(System.Net.HttpRequestHeader,System.String)">
413 <summary>Sets the specified header to the specified value.</summary>
414 <param name="header">The <see cref="T:System.Net.HttpRequestHeader" /> value to set.</param>
415 <param name="value">The content of the header to set.</param>
416 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value" /> is greater than 65535.</exception>
417 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection" /> instance does not allow instances of <see cref="T:System.Net.HttpRequestHeader" />.</exception>
419 <member name="M:System.Net.WebHeaderCollection.Set(System.Net.HttpResponseHeader,System.String)">
420 <summary>Sets the specified header to the specified value.</summary>
421 <param name="header">The <see cref="T:System.Net.HttpResponseHeader" /> value to set.</param>
422 <param name="value">The content of the header to set.</param>
423 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value" /> is greater than 65535.</exception>
424 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection" /> instance does not allow instances of <see cref="T:System.Net.HttpResponseHeader" />.</exception>
426 <member name="M:System.Net.WebHeaderCollection.Set(System.String,System.String)">
427 <summary>Sets the specified header to the specified value.</summary>
428 <param name="name">The header to set.</param>
429 <param name="value">The content of the header to set.</param>
430 <exception cref="T:System.ArgumentNullException">
431 <paramref name="name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
432 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value" /> is greater than 65535.</exception>
433 <exception cref="T:System.ArgumentException">
434 <paramref name="name" /> is a restricted header.
436 <paramref name="name" /> or <paramref name="value" /> contain invalid characters.</exception>
438 <member name="M:System.Net.WebHeaderCollection.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
439 <summary>Serializes this instance into the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object.</summary>
440 <param name="serializationInfo">The object into which this <see cref="T:System.Net.WebHeaderCollection" /> will be serialized.</param>
441 <param name="streamingContext">The destination of the serialization.</param>
443 <member name="M:System.Net.WebHeaderCollection.ToByteArray">
444 <summary>Converts the <see cref="T:System.Net.WebHeaderCollection" /> to a byte array.</summary>
445 <returns>A <see cref="T:System.Byte" /> array holding the header collection.</returns>
447 <member name="M:System.Net.WebHeaderCollection.ToString">
448 <summary>This method is obsolete.</summary>
449 <returns>The <see cref="T:System.String" /> representation of the collection.</returns>