1 <?xml version="1.0" encoding="utf-8"?><doc>
3 <name>System.Net.WebHeaderCollection</name>
6 <member name="T:System.Net.HttpRequestHeader">
7 <summary>The HTTP headers that may be specified in a client request.</summary>
9 <member name="F:System.Net.HttpRequestHeader.Accept">
10 <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>
17 <member name="F:System.Net.HttpRequestHeader.AcceptEncoding">
18 <summary>The Accept-Encoding header, which specifies the content encodings that are acceptable for the response.</summary>
21 <member name="F:System.Net.HttpRequestHeader.AcceptLanguage">
22 <summary>The Accept-Langauge header, which specifies that natural languages that are preferred for the response.</summary>
25 <member name="F:System.Net.HttpRequestHeader.Allow">
26 <summary>The Allow header, which specifies the set of HTTP methods supported.</summary>
29 <member name="F:System.Net.HttpRequestHeader.Authorization">
30 <summary>The Authorization header, which specifies the credentials that the client presents in order to authenticate itself to the server.</summary>
33 <member name="F:System.Net.HttpRequestHeader.CacheControl">
34 <summary>The Cache-Control header, which specifies directives that must be obeyed by all cache control mechanisms along the request/response chain.</summary>
37 <member name="F:System.Net.HttpRequestHeader.Connection">
38 <summary>The Connection header, which specifies options that are desired for a particular connection.</summary>
41 <member name="F:System.Net.HttpRequestHeader.ContentEncoding">
42 <summary>The Content-Encoding header, which specifies the encodings that have been applied to the accompanying body data.</summary>
45 <member name="F:System.Net.HttpRequestHeader.ContentLanguage">
46 <summary>The Content-Langauge header, which specifies the natural language(s) of the accompanying body data.</summary>
49 <member name="F:System.Net.HttpRequestHeader.ContentLength">
50 <summary>The Content-Length header, which specifies the length, in bytes, of the accompanying body data.</summary>
53 <member name="F:System.Net.HttpRequestHeader.ContentLocation">
54 <summary>The Content-Location header, which specifies a URI from which the accompanying body may be obtained.</summary>
57 <member name="F:System.Net.HttpRequestHeader.ContentMd5">
58 <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.</summary>
61 <member name="F:System.Net.HttpRequestHeader.ContentRange">
62 <summary>The Content-Range header, which specifies where in the full body the accompanying partial body data should be applied.</summary>
65 <member name="F:System.Net.HttpRequestHeader.ContentType">
66 <summary>The Content-Type header, which specifies the MIME type of the accompanying body data.</summary>
69 <member name="F:System.Net.HttpRequestHeader.Cookie">
70 <summary>The Cookie header, which specifies cookie data presented to the server.</summary>
73 <member name="F:System.Net.HttpRequestHeader.Date">
74 <summary>The Date header, which specifies the date and time at which the request originated.</summary>
77 <member name="F:System.Net.HttpRequestHeader.Expect">
78 <summary>The Expect header, which specifies particular server behaviors that are required by the client.</summary>
81 <member name="F:System.Net.HttpRequestHeader.Expires">
82 <summary>The Expires header, which specifies the date and time after which the accompanying body data should be considered stale.</summary>
85 <member name="F:System.Net.HttpRequestHeader.From">
86 <summary>The From header, which specifies an Internet Email address for the human user who controls the requesting user agent.</summary>
89 <member name="F:System.Net.HttpRequestHeader.Host">
90 <summary>The Host header, which specifies the host name and port number of the resource being requested.</summary>
93 <member name="F:System.Net.HttpRequestHeader.IfMatch">
94 <summary>The If-Match header, which specifies that the requested operation should be performed only if the client&#39;s cached copy of the indicated resource is current.</summary>
97 <member name="F:System.Net.HttpRequestHeader.IfModifiedSince">
98 <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>
101 <member name="F:System.Net.HttpRequestHeader.IfNoneMatch">
102 <summary>The If-None-Match header, which specifies that the requested operation should be performed only if none of client&#39;s cached copies of the indicated resources are current.</summary>
105 <member name="F:System.Net.HttpRequestHeader.IfRange">
106 <summary>The If-Range header, which specifies that only the specified range of the requested resource should be sent, if the client&#39;s cached copy is current.</summary>
109 <member name="F:System.Net.HttpRequestHeader.IfUnmodifiedSince">
110 <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>
113 <member name="F:System.Net.HttpRequestHeader.KeepAlive">
114 <summary>The Keep-Alive header, which specifies a parameter used into order to maintain a persistent connection.</summary>
117 <member name="F:System.Net.HttpRequestHeader.LastModified">
118 <summary>The Last-Modified header, which specifies the date and time at which the accompanying body data was last modified.</summary>
121 <member name="F:System.Net.HttpRequestHeader.MaxForwards">
122 <summary>The Max-Forwards header, which specifies an integer indicating the remaining number of times that this request may be forwarded.</summary>
125 <member name="F:System.Net.HttpRequestHeader.Pragma">
126 <summary>The Pragma header, which specifies implementation-specific directives that might apply to any agent along the request/response chain.</summary>
129 <member name="F:System.Net.HttpRequestHeader.ProxyAuthorization">
130 <summary>The Proxy-Authorization header, which specifies the credentials that the client presents in order to authenticate itself to a proxy.</summary>
133 <member name="F:System.Net.HttpRequestHeader.Range">
134 <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>
137 <member name="F:System.Net.HttpRequestHeader.Referer">
138 <summary>The Referer header, which specifies the URI of the resource from which the request URI was obtained.</summary>
141 <member name="F:System.Net.HttpRequestHeader.Te">
142 <summary>The TE header, which specifies the transfer encodings that are acceptable for the response.</summary>
145 <member name="F:System.Net.HttpRequestHeader.Trailer">
146 <summary>The Trailer header, which specifies the header fields present in the trailer of a message encoded with chunked transfer-coding.</summary>
149 <member name="F:System.Net.HttpRequestHeader.TransferEncoding">
150 <summary>The Transfer-Encoding header, which specifies what (if any) type of transformation that has been applied to the message body.</summary>
153 <member name="F:System.Net.HttpRequestHeader.Translate">
154 <summary>The Translate header, a Microsoft extension to the HTTP specification used in conjunction with WebDAV functionality.</summary>
157 <member name="F:System.Net.HttpRequestHeader.Upgrade">
158 <summary>The Upgrade header, which specifies additional communications protocols that the client supports.</summary>
161 <member name="F:System.Net.HttpRequestHeader.UserAgent">
162 <summary>The User-Agent header, which specifies information about the client agent.</summary>
165 <member name="F:System.Net.HttpRequestHeader.Via">
166 <summary>The Via header, which specifies intermediate protocols to be used by gateway and proxy agents.</summary>
169 <member name="F:System.Net.HttpRequestHeader.Warning">
170 <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>
173 <member name="T:System.Net.HttpResponseHeader">
174 <summary>The HTTP headers that can be specified in a server response.</summary>
176 <member name="F:System.Net.HttpResponseHeader.AcceptRanges">
177 <summary>The Accept-Ranges header, which specifies the range that is accepted by the server.</summary>
180 <member name="F:System.Net.HttpResponseHeader.Age">
181 <summary>The Age header, which specifies the time, in seconds, since the response was generated by the originating server.</summary>
184 <member name="F:System.Net.HttpResponseHeader.Allow">
185 <summary>The Allow header, which specifies the set of HTTP methods that are supported.</summary>
188 <member name="F:System.Net.HttpResponseHeader.CacheControl">
189 <summary>The Cache-Control header, which specifies caching directives that must be obeyed by all caching mechanisms along the request/response chain.</summary>
192 <member name="F:System.Net.HttpResponseHeader.Connection">
193 <summary>The Connection header, which specifies options that are desired for a particular connection.</summary>
196 <member name="F:System.Net.HttpResponseHeader.ContentEncoding">
197 <summary>The Content-Encoding header, which specifies the encodings that have been applied to the accompanying body data.</summary>
200 <member name="F:System.Net.HttpResponseHeader.ContentLanguage">
201 <summary>The Content-Langauge header, which specifies the natural language or languages of the accompanying body data.</summary>
204 <member name="F:System.Net.HttpResponseHeader.ContentLength">
205 <summary>The Content-Length header, which specifies the length, in bytes, of the accompanying body data.</summary>
208 <member name="F:System.Net.HttpResponseHeader.ContentLocation">
209 <summary>The Content-Location header, which specifies a URI from which the accompanying body can be obtained.</summary>
212 <member name="F:System.Net.HttpResponseHeader.ContentMd5">
213 <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.</summary>
216 <member name="F:System.Net.HttpResponseHeader.ContentRange">
217 <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>
220 <member name="F:System.Net.HttpResponseHeader.ContentType">
221 <summary>The Content-Type header, which specifies the MIME type of the accompanying body data.</summary>
224 <member name="F:System.Net.HttpResponseHeader.Date">
225 <summary>The Date header, which specifies the date and time at which the response originated.</summary>
228 <member name="F:System.Net.HttpResponseHeader.ETag">
229 <summary>The Etag header, which specifies the current value for the requested variant.</summary>
232 <member name="F:System.Net.HttpResponseHeader.Expires">
233 <summary>The Expires header, which specifies the date and time after which the accompanying body data should be considered stale.</summary>
236 <member name="F:System.Net.HttpResponseHeader.KeepAlive">
237 <summary>The Keep-Alive header, which specifies a parameter to be used to maintain a persistent connection.</summary>
240 <member name="F:System.Net.HttpResponseHeader.LastModified">
241 <summary>The Last-Modified header, which specifies the date and time at which the accompanying body data was last modified.</summary>
244 <member name="F:System.Net.HttpResponseHeader.Location">
245 <summary>The Location header, which specifies a URI to which the client is redirected to obtain the requested resource.</summary>
248 <member name="F:System.Net.HttpResponseHeader.Pragma">
249 <summary>The Pragma header, which specifies implementation-specific directives that might apply to any agent along the request/response chain.</summary>
252 <member name="F:System.Net.HttpResponseHeader.ProxyAuthenticate">
253 <summary>The Proxy-Authenticate header, which specifies that the client must authenticate itself to a proxy.</summary>
256 <member name="F:System.Net.HttpResponseHeader.RetryAfter">
257 <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>
260 <member name="F:System.Net.HttpResponseHeader.Server">
261 <summary>The Server header, which specifies information about the originating server agent.</summary>
264 <member name="F:System.Net.HttpResponseHeader.SetCookie">
265 <summary>The Set-Cookie header, which specifies cookie data that is presented to the client.</summary>
268 <member name="F:System.Net.HttpResponseHeader.Trailer">
269 <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>
272 <member name="F:System.Net.HttpResponseHeader.TransferEncoding">
273 <summary>The Transfer-Encoding header, which specifies what (if any) type of transformation has been applied to the message body.</summary>
276 <member name="F:System.Net.HttpResponseHeader.Upgrade">
277 <summary>The Upgrade header, which specifies additional communications protocols that the client supports.</summary>
280 <member name="F:System.Net.HttpResponseHeader.Vary">
281 <summary>The Vary header, which specifies the request headers that are used to determine whether a cached response is fresh.</summary>
284 <member name="F:System.Net.HttpResponseHeader.Via">
285 <summary>The Via header, which specifies intermediate protocols to be used by gateway and proxy agents.</summary>
288 <member name="F:System.Net.HttpResponseHeader.Warning">
289 <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>
292 <member name="F:System.Net.HttpResponseHeader.WwwAuthenticate">
293 <summary>The WWW-Authenticate header, which specifies that the client must authenticate itself to the server.</summary>
296 <member name="T:System.Net.WebHeaderCollection">
297 <summary>Contains protocol headers associated with a request or response.</summary>
299 <member name="M:System.Net.WebHeaderCollection.#ctor">
300 <summary>Initializes a new instance of the <see cref="T:System.Net.WebHeaderCollection"></see> class.</summary>
302 <member name="M:System.Net.WebHeaderCollection.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
303 <summary>Initializes a new instance of the <see cref="T:System.Net.WebHeaderCollection"></see> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> and <see cref="T:System.Runtime.Serialization.StreamingContext"></see> classes.</summary>
304 <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> containing the information required to serialize the <see cref="T:System.Net.WebHeaderCollection"></see>.</param>
305 <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext"></see> containing the source of the serialized stream associated with the new <see cref="T:System.Net.WebHeaderCollection"></see>.</param>
306 <exception cref="T:System.ArgumentException"><paramref name="headerName">headerName</paramref> contains invalid characters.</exception>
307 <exception cref="T:System.ArgumentNullException"><paramref name="headerName">headerName</paramref> is a null reference or <see cref="System.String.Empty"></see>.</exception>
309 <member name="M:System.Net.WebHeaderCollection.Add(System.String)">
310 <summary>Inserts the specified header into the collection.</summary>
311 <param name="header">The header to add, with the name and value separated by a colon.</param>
312 <exception cref="T:System.ArgumentNullException"><paramref name="header">header</paramref> is null or <see cref="System.String.Empty"></see>.</exception>
313 <exception cref="T:System.ArgumentException"><paramref name="header">header</paramref> does not contain a colon (:) character.
314 The length of <paramref name="value">value</paramref> is greater than 65535.
316 The name part of <paramref name="header">header</paramref> is <see cref="System.String.Empty"></see> or contains invalid characters.
318 <paramref name="header">header</paramref> is a restricted header that should be set with a property.
320 The value part of <paramref name="header">header</paramref> contains invalid characters.</exception>
321 <exception cref="T:System.ArgumentOutOfRangeException">The length the string after the colon (:) is greater than 65535.</exception>
323 <member name="M:System.Net.WebHeaderCollection.Add(System.Net.HttpRequestHeader,System.String)">
324 <summary>Inserts the specified header with the specified value into the collection.</summary>
325 <param name="header">The header to add to the collection.</param>
326 <param name="value">The content of the header.</param>
327 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
328 <exception cref="T:System.InvalidOperationException">This <see cref="System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="System.Net.HttpRequestHeader"></see>.</exception>
330 <member name="M:System.Net.WebHeaderCollection.Add(System.Net.HttpResponseHeader,System.String)">
331 <summary>Inserts the specified header with the specified value into the collection.</summary>
332 <param name="header">The header to add to the collection.</param>
333 <param name="value">The content of the header.</param>
334 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
335 <exception cref="T:System.InvalidOperationException">This <see cref="System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="System.Net.HttpResponseHeader"></see>.</exception>
337 <member name="M:System.Net.WebHeaderCollection.Add(System.String,System.String)">
338 <summary>Inserts a header with the specified name and value into the collection.</summary>
339 <param name="name">The header to add to the collection.</param>
340 <param name="value">The content of the header.</param>
341 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> is null, <see cref="System.String.Empty"></see>, or contains invalid characters.
343 <paramref name="name">name</paramref> is a restricted header that must be set with a property setting.
345 <paramref name="value">value</paramref> contains invalid characters.</exception>
346 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
348 <member name="M:System.Net.WebHeaderCollection.AddWithoutValidate(System.String,System.String)">
349 <summary>Inserts a header into the collection without checking whether the header is on the restricted header list.</summary>
350 <param name="headerName">The header to add to the collection.</param>
351 <param name="headerValue">The content of the header.</param>
352 <exception cref="T:System.ArgumentException"><paramref name="headerName">headerName</paramref> is null, <see cref="System.String.Empty"></see>, or contains invalid characters.
354 <paramref name="headerValue">headerValue</paramref> contains invalid characters.</exception>
355 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="headerName">headerName</paramref> is not null and the length of <paramref name="headerValue">headerValue</paramref> is too long (greater than 65,535 characters).</exception>
357 <member name="P:System.Net.WebHeaderCollection.AllKeys">
358 <summary>Gets all header names (keys) in the collection.</summary>
359 <returns>An array of type <see cref="System.String"></see> containing all header names in a Web request.</returns>
361 <member name="M:System.Net.WebHeaderCollection.Clear">
362 <summary>Removes all headers from the collection.</summary>
364 <member name="P:System.Net.WebHeaderCollection.Count">
365 <summary>Gets the number of headers in the collection.</summary>
366 <returns>An <see cref="System.Int32"></see> indicating the number of headers in a request.</returns>
368 <member name="M:System.Net.WebHeaderCollection.Get(System.Int32)">
369 <summary>Gets the value of a particular header in the collection, specified by an index into the collection.</summary>
370 <param name="index">The zero-based index of the key to get from the collection.</param>
371 <returns>A <see cref="System.String"></see> containing the value of the specified header.</returns>
372 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> is negative.
374 <paramref name="index">index</paramref> exceeds the size of the collection.</exception>
376 <member name="M:System.Net.WebHeaderCollection.Get(System.String)">
377 <summary>Gets the value of a particular header in the collection, specified by the name of the header.</summary>
378 <param name="name">The name of the Web header.</param>
379 <returns>A <see cref="System.String"></see> holding the value of the specified header.</returns>
381 <member name="M:System.Net.WebHeaderCollection.GetEnumerator">
382 <summary>Returns an enumerator that can iterate through the <see cref="T:System.Net.WebHeaderCollection"></see> instance.</summary>
383 <returns>An <see cref="System.Collections.IEnumerator"></see> for the <see cref="System.Net.WebHeaderCollection"></see>.</returns>
385 <member name="M:System.Net.WebHeaderCollection.GetKey(System.Int32)">
386 <summary>Gets the header name at the specified position in the collection.</summary>
387 <param name="index">The zero-based index of the key to get from the collection.</param>
388 <returns>A <see cref="System.String"></see> holding the header name.</returns>
389 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> is negative.
391 <paramref name="index">index</paramref> exceeds the size of the collection.</exception>
393 <member name="M:System.Net.WebHeaderCollection.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
394 <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> with the data needed to serialize the target object.</summary>
395 <param name="serializationInfo">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> to populate with data.</param>
396 <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that specifies the destination for this serialization.</param>
398 <member name="M:System.Net.WebHeaderCollection.GetValues(System.String)">
399 <summary>Gets an array of header values stored in a header.</summary>
400 <param name="header">The header to return.</param>
401 <returns>An array of header strings.</returns>
403 <member name="M:System.Net.WebHeaderCollection.GetValues(System.Int32)">
404 <summary>Gets an array of header values stored in the <paramref name="index">index</paramref> position of the header collection.</summary>
405 <param name="index">The header index to return.</param>
406 <returns>An array of header strings.</returns>
408 <member name="M:System.Net.WebHeaderCollection.IsRestricted(System.String)">
409 <summary>Tests whether the specified HTTP header can be set for the request.</summary>
410 <param name="headerName">The header to test.</param>
411 <returns>true if the header is restricted; otherwise false.</returns>
412 <exception cref="T:System.ArgumentNullException"><paramref name="headerName">headerName</paramref> is null or <see cref="System.String.Empty"></see>.</exception>
413 <exception cref="T:System.ArgumentException"><paramref name="headerName">headerName</paramref> contains invalid characters.</exception>
415 <member name="M:System.Net.WebHeaderCollection.IsRestricted(System.String,System.Boolean)">
416 <summary>Tests whether the specified HTTP header can be set for the request or the response.</summary>
417 <param name="headerName">The header to test.</param>
418 <param name="response">Does the Framework test the response or the request?</param>
419 <returns>true if the header is restricted; otherwise, false.</returns>
420 <exception cref="T:System.ArgumentNullException"><paramref name="headerName">headerName</paramref> is null or <see cref="System.String.Empty"></see>.</exception>
421 <exception cref="T:System.ArgumentException"><paramref name="headerName">headerName</paramref> contains invalid characters.</exception>
423 <member name="P:System.Net.WebHeaderCollection.Item(System.Net.HttpRequestHeader)">
424 <summary>Gets or sets the specified request header.</summary>
425 <param name="header">The request header value.</param>
426 <returns>A <see cref="System.String"></see> instance containing the specified header value.</returns>
427 <exception cref="T:System.InvalidOperationException">This <see cref="System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="System.Net.HttpRequestHeader"></see>.</exception>
429 <member name="P:System.Net.WebHeaderCollection.Item(System.Net.HttpResponseHeader)">
430 <summary>Gets or sets the specified response header.</summary>
431 <param name="header">The response header value.</param>
432 <returns>A <see cref="System.String"></see> instance containing the specified header.</returns>
433 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
434 <exception cref="T:System.InvalidOperationException">This <see cref="System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="System.Net.HttpResponseHeader"></see>.</exception>
436 <member name="P:System.Net.WebHeaderCollection.Item(System.String)">
437 <param name="name"></param>
440 <member name="P:System.Net.WebHeaderCollection.Keys">
441 <summary>Gets the collection of header names (keys) in the collection.</summary>
442 <returns>A <see cref="System.Collections.Specialized.NameObjectCollectionBase.KeysCollection"></see> containing all header names in a Web request.</returns>
444 <member name="M:System.Net.WebHeaderCollection.OnDeserialization(System.Object)">
445 <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable"></see> interface and raises the deserialization event when the deserialization is complete.</summary>
446 <param name="sender">The source of the deserialization event.</param>
448 <member name="M:System.Net.WebHeaderCollection.Remove(System.Net.HttpRequestHeader)">
449 <summary>Removes the specified header from the collection.</summary>
450 <param name="header">The <see cref="T:System.Net.HttpRequestHeader"></see> instance to remove from the collection.</param>
451 <exception cref="T:System.InvalidOperationException">This <see cref="System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="System.Net.HttpRequestHeader"></see>.</exception>
453 <member name="M:System.Net.WebHeaderCollection.Remove(System.Net.HttpResponseHeader)">
454 <summary>Removes the specified header from the collection.</summary>
455 <param name="header">The <see cref="T:System.Net.HttpResponseHeader"></see> instance to remove from the collection.</param>
456 <exception cref="T:System.InvalidOperationException">This <see cref="System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="System.Net.HttpResponseHeader"></see>.</exception>
458 <member name="M:System.Net.WebHeaderCollection.Remove(System.String)">
459 <summary>Removes the specified header from the collection.</summary>
460 <param name="name">The name of the header to remove from the collection.</param>
461 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref> is null<see cref="System.String.Empty"></see>.</exception>
462 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> is a restricted header.
464 <paramref name="name">name</paramref> contains invalid characters.</exception>
466 <member name="M:System.Net.WebHeaderCollection.Set(System.Net.HttpRequestHeader,System.String)">
467 <summary>Sets the specified header to the specified value.</summary>
468 <param name="header">The <see cref="T:System.Net.HttpRequestHeader"></see> value to set.</param>
469 <param name="value">The content of the header to set.</param>
470 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
471 <exception cref="T:System.InvalidOperationException">This <see cref="System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="System.Net.HttpRequestHeader"></see>.</exception>
473 <member name="M:System.Net.WebHeaderCollection.Set(System.Net.HttpResponseHeader,System.String)">
474 <summary>Sets the specified header to the specified value.</summary>
475 <param name="header">The <see cref="T:System.Net.HttpResponseHeader"></see> value to set.</param>
476 <param name="value">The content of the header to set.</param>
477 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
478 <exception cref="T:System.InvalidOperationException">This <see cref="System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="System.Net.HttpResponseHeader"></see>.</exception>
480 <member name="M:System.Net.WebHeaderCollection.Set(System.String,System.String)">
481 <summary>Sets the specified header to the specified value.</summary>
482 <param name="name">The header to set.</param>
483 <param name="value">The content of the header to set.</param>
484 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref> is null or <see cref="System.String.Empty"></see>.</exception>
485 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
486 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> is a restricted header.
488 <paramref name="name">name</paramref> or <paramref name="value">value</paramref> contain invalid characters.</exception>
490 <member name="M:System.Net.WebHeaderCollection.ToByteArray">
491 <summary>Converts the <see cref="T:System.Net.WebHeaderCollection"></see> to a byte array..</summary>
492 <returns>A <see cref="System.Byte"></see> array holding the header collection.</returns>
494 <member name="M:System.Net.WebHeaderCollection.ToString">
495 <summary>This method is obsolete.</summary>
496 <returns>The <see cref="System.String"></see> representation of the collection.</returns>
498 <member name="M:System.Net.WebHeaderCollection.System#Collections#IEnumerable#GetEnumerator">
501 <member name="M:System.Net.WebHeaderCollection.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
502 <summary>Serializes this instance into the specified <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> object.</summary>
503 <param name="serializationInfo">The object into which this <see cref="T:System.Net.WebHeaderCollection"></see> will be serialized.</param>
504 <param name="streamingContext">The destination of the serialization.</param>