1 <?xml version="1.0" encoding="utf-8"?><span>
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>
14 <member name="F:System.Net.HttpRequestHeader.AcceptCharset">
15 <summary>The Accept-Charset header, which specifies the character sets that are acceptable for the response.</summary>
18 <member name="F:System.Net.HttpRequestHeader.AcceptEncoding">
19 <summary>The Accept-Encoding header, which specifies the content encodings that are acceptable for the response.</summary>
22 <member name="F:System.Net.HttpRequestHeader.AcceptLanguage">
23 <summary>The Accept-Langauge header, which specifies that natural languages that are preferred for the response.</summary>
26 <member name="F:System.Net.HttpRequestHeader.Allow">
27 <summary>The Allow header, which specifies the set of HTTP methods supported.</summary>
30 <member name="F:System.Net.HttpRequestHeader.Authorization">
31 <summary>The Authorization header, which specifies the credentials that the client presents in order to authenticate itself to the server.</summary>
34 <member name="F:System.Net.HttpRequestHeader.CacheControl">
35 <summary>The Cache-Control header, which specifies directives that must be obeyed by all cache control mechanisms along the request/response chain.</summary>
38 <member name="F:System.Net.HttpRequestHeader.Connection">
39 <summary>The Connection header, which specifies options that are desired for a particular connection.</summary>
42 <member name="F:System.Net.HttpRequestHeader.ContentEncoding">
43 <summary>The Content-Encoding header, which specifies the encodings that have been applied to the accompanying body data.</summary>
46 <member name="F:System.Net.HttpRequestHeader.ContentLanguage">
47 <summary>The Content-Langauge header, which specifies the natural language(s) of the accompanying body data.</summary>
50 <member name="F:System.Net.HttpRequestHeader.ContentLength">
51 <summary>The Content-Length header, which specifies the length, in bytes, of the accompanying body data.</summary>
54 <member name="F:System.Net.HttpRequestHeader.ContentLocation">
55 <summary>The Content-Location header, which specifies a URI from which the accompanying body may be obtained.</summary>
58 <member name="F:System.Net.HttpRequestHeader.ContentMd5">
59 <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>
62 <member name="F:System.Net.HttpRequestHeader.ContentRange">
63 <summary>The Content-Range header, which specifies where in the full body the accompanying partial body data should be applied.</summary>
66 <member name="F:System.Net.HttpRequestHeader.ContentType">
67 <summary>The Content-Type header, which specifies the MIME type of the accompanying body data.</summary>
70 <member name="F:System.Net.HttpRequestHeader.Cookie">
71 <summary>The Cookie header, which specifies cookie data presented to the server.</summary>
74 <member name="F:System.Net.HttpRequestHeader.Date">
75 <summary>The Date header, which specifies the date and time at which the request originated.</summary>
78 <member name="F:System.Net.HttpRequestHeader.Expect">
79 <summary>The Expect header, which specifies particular server behaviors that are required by the client.</summary>
82 <member name="F:System.Net.HttpRequestHeader.Expires">
83 <summary>The Expires header, which specifies the date and time after which the accompanying body data should be considered stale.</summary>
86 <member name="F:System.Net.HttpRequestHeader.From">
87 <summary>The From header, which specifies an Internet E-mail address for the human user who controls the requesting user agent.</summary>
90 <member name="F:System.Net.HttpRequestHeader.Host">
91 <summary>The Host header, which specifies the host name and port number of the resource being requested.</summary>
94 <member name="F:System.Net.HttpRequestHeader.IfMatch">
95 <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>
98 <member name="F:System.Net.HttpRequestHeader.IfModifiedSince">
99 <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>
102 <member name="F:System.Net.HttpRequestHeader.IfNoneMatch">
103 <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>
106 <member name="F:System.Net.HttpRequestHeader.IfRange">
107 <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>
110 <member name="F:System.Net.HttpRequestHeader.IfUnmodifiedSince">
111 <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>
114 <member name="F:System.Net.HttpRequestHeader.KeepAlive">
115 <summary>The Keep-Alive header, which specifies a parameter used into order to maintain a persistent connection.</summary>
118 <member name="F:System.Net.HttpRequestHeader.LastModified">
119 <summary>The Last-Modified header, which specifies the date and time at which the accompanying body data was last modified.</summary>
122 <member name="F:System.Net.HttpRequestHeader.MaxForwards">
123 <summary>The Max-Forwards header, which specifies an integer indicating the remaining number of times that this request may be forwarded.</summary>
126 <member name="F:System.Net.HttpRequestHeader.Pragma">
127 <summary>The Pragma header, which specifies implementation-specific directives that might apply to any agent along the request/response chain.</summary>
130 <member name="F:System.Net.HttpRequestHeader.ProxyAuthorization">
131 <summary>The Proxy-Authorization header, which specifies the credentials that the client presents in order to authenticate itself to a proxy.</summary>
134 <member name="F:System.Net.HttpRequestHeader.Range">
135 <summary>The Range header, which specifies the the sub-range(s) of the response that the client requests be returned in lieu of the entire response.</summary>
138 <member name="F:System.Net.HttpRequestHeader.Referer">
139 <summary>The Referer header, which specifies the URI of the resource from which the request URI was obtained.</summary>
142 <member name="F:System.Net.HttpRequestHeader.Te">
143 <summary>The TE header, which specifies the transfer encodings that are acceptable for the response.</summary>
146 <member name="F:System.Net.HttpRequestHeader.Trailer">
147 <summary>The Trailer header, which specifies the header fields present in the trailer of a message encoded with chunked transfer-coding.</summary>
150 <member name="F:System.Net.HttpRequestHeader.TransferEncoding">
151 <summary>The Transfer-Encoding header, which specifies what (if any) type of transformation that has been applied to the message body.</summary>
154 <member name="F:System.Net.HttpRequestHeader.Translate">
155 <summary>The Translate header, a Microsoft extension to the HTTP specification used in conjunction with WebDAV functionality.</summary>
158 <member name="F:System.Net.HttpRequestHeader.Upgrade">
159 <summary>The Upgrade header, which specifies additional communications protocols that the client supports.</summary>
162 <member name="F:System.Net.HttpRequestHeader.UserAgent">
163 <summary>The User-Agent header, which specifies information about the client agent.</summary>
166 <member name="F:System.Net.HttpRequestHeader.Via">
167 <summary>The Via header, which specifies intermediate protocols to be used by gateway and proxy agents.</summary>
170 <member name="F:System.Net.HttpRequestHeader.Warning">
171 <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>
174 <member name="T:System.Net.HttpResponseHeader">
175 <summary>The HTTP headers that can be specified in a server response.</summary>
177 <member name="F:System.Net.HttpResponseHeader.AcceptRanges">
178 <summary>The Accept-Ranges header, which specifies the range that is accepted by the server.</summary>
181 <member name="F:System.Net.HttpResponseHeader.Age">
182 <summary>The Age header, which specifies the time, in seconds, since the response was generated by the originating server.</summary>
185 <member name="F:System.Net.HttpResponseHeader.Allow">
186 <summary>The Allow header, which specifies the set of HTTP methods that are supported.</summary>
189 <member name="F:System.Net.HttpResponseHeader.CacheControl">
190 <summary>The Cache-Control header, which specifies caching directives that must be obeyed by all caching mechanisms along the request/response chain.</summary>
193 <member name="F:System.Net.HttpResponseHeader.Connection">
194 <summary>The Connection header, which specifies options that are desired for a particular connection.</summary>
197 <member name="F:System.Net.HttpResponseHeader.ContentEncoding">
198 <summary>The Content-Encoding header, which specifies the encodings that have been applied to the accompanying body data.</summary>
201 <member name="F:System.Net.HttpResponseHeader.ContentLanguage">
202 <summary>The Content-Langauge header, which specifies the natural language or languages of the accompanying body data.</summary>
205 <member name="F:System.Net.HttpResponseHeader.ContentLength">
206 <summary>The Content-Length header, which specifies the length, in bytes, of the accompanying body data.</summary>
209 <member name="F:System.Net.HttpResponseHeader.ContentLocation">
210 <summary>The Content-Location header, which specifies a URI from which the accompanying body can be obtained.</summary>
213 <member name="F:System.Net.HttpResponseHeader.ContentMd5">
214 <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>
217 <member name="F:System.Net.HttpResponseHeader.ContentRange">
218 <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>
221 <member name="F:System.Net.HttpResponseHeader.ContentType">
222 <summary>The Content-Type header, which specifies the MIME type of the accompanying body data.</summary>
225 <member name="F:System.Net.HttpResponseHeader.Date">
226 <summary>The Date header, which specifies the date and time at which the response originated.</summary>
229 <member name="F:System.Net.HttpResponseHeader.ETag">
230 <summary>The Etag header, which specifies the current value for the requested variant.</summary>
233 <member name="F:System.Net.HttpResponseHeader.Expires">
234 <summary>The Expires header, which specifies the date and time after which the accompanying body data should be considered stale.</summary>
237 <member name="F:System.Net.HttpResponseHeader.KeepAlive">
238 <summary>The Keep-Alive header, which specifies a parameter to be used to maintain a persistent connection.</summary>
241 <member name="F:System.Net.HttpResponseHeader.LastModified">
242 <summary>The Last-Modified header, which specifies the date and time at which the accompanying body data was last modified.</summary>
245 <member name="F:System.Net.HttpResponseHeader.Location">
246 <summary>The Location header, which specifies a URI to which the client is redirected to obtain the requested resource.</summary>
249 <member name="F:System.Net.HttpResponseHeader.Pragma">
250 <summary>The Pragma header, which specifies implementation-specific directives that might apply to any agent along the request/response chain.</summary>
253 <member name="F:System.Net.HttpResponseHeader.ProxyAuthenticate">
254 <summary>The Proxy-Authenticate header, which specifies that the client must authenticate itself to a proxy.</summary>
257 <member name="F:System.Net.HttpResponseHeader.RetryAfter">
258 <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>
261 <member name="F:System.Net.HttpResponseHeader.Server">
262 <summary>The Server header, which specifies information about the originating server agent.</summary>
265 <member name="F:System.Net.HttpResponseHeader.SetCookie">
266 <summary>The Set-Cookie header, which specifies cookie data that is presented to the client.</summary>
269 <member name="F:System.Net.HttpResponseHeader.Trailer">
270 <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>
273 <member name="F:System.Net.HttpResponseHeader.TransferEncoding">
274 <summary>The Transfer-Encoding header, which specifies what (if any) type of transformation has been applied to the message body.</summary>
277 <member name="F:System.Net.HttpResponseHeader.Upgrade">
278 <summary>The Upgrade header, which specifies additional communications protocols that the client supports.</summary>
281 <member name="F:System.Net.HttpResponseHeader.Vary">
282 <summary>The Vary header, which specifies the request headers that are used to determine whether a cached response is fresh.</summary>
285 <member name="F:System.Net.HttpResponseHeader.Via">
286 <summary>The Via header, which specifies intermediate protocols to be used by gateway and proxy agents.</summary>
289 <member name="F:System.Net.HttpResponseHeader.Warning">
290 <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>
293 <member name="F:System.Net.HttpResponseHeader.WwwAuthenticate">
294 <summary>The WWW-Authenticate header, which specifies that the client must authenticate itself to the server.</summary>
297 <member name="T:System.Net.WebHeaderCollection">
298 <summary>Contains protocol headers associated with a request or response.</summary>
300 <member name="M:System.Net.WebHeaderCollection.#ctor">
301 <summary>Initializes a new instance of the <see cref="T:System.Net.WebHeaderCollection"></see> class.</summary>
303 <member name="M:System.Net.WebHeaderCollection.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
304 <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>
305 <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>
306 <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>
307 <exception cref="T:System.ArgumentException"><paramref name="headerName">headerName</paramref> contains invalid characters.</exception>
308 <exception cref="T:System.ArgumentNullException"><paramref name="headerName">headerName</paramref> is a null reference or <see cref="F:System.String.Empty"></see>.</exception>
310 <member name="M:System.Net.WebHeaderCollection.Add(System.String)">
311 <summary>Inserts the specified header into the collection.</summary>
312 <param name="header">The header to add, with the name and value separated by a colon.</param>
313 <exception cref="T:System.ArgumentNullException"><paramref name="header">header</paramref> is null or <see cref="F:System.String.Empty"></see>.</exception>
314 <exception cref="T:System.ArgumentException"><paramref name="header">header</paramref> does not contain a colon (:) character. The length of <paramref name="value">value</paramref> is greater than 65535. -or- The name part of <paramref name="header">header</paramref> is <see cref="F:System.String.Empty"></see> or contains invalid characters. -or- <paramref name="header">header</paramref> is a restricted header that should be set with a property. -or- The value part of <paramref name="header">header</paramref> contains invalid characters.</exception>
315 <exception cref="T:System.ArgumentOutOfRangeException">The length the string after the colon (:) is greater than 65535.</exception>
317 <member name="M:System.Net.WebHeaderCollection.Add(System.Net.HttpRequestHeader,System.String)">
318 <summary>Inserts the specified header with the specified value into the collection.</summary>
319 <param name="header">The header to add to the collection.</param>
320 <param name="value">The content of the header.</param>
321 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
322 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="T:System.Net.HttpRequestHeader"></see>.</exception>
324 <member name="M:System.Net.WebHeaderCollection.Add(System.Net.HttpResponseHeader,System.String)">
325 <summary>Inserts the specified header with the specified value into the collection.</summary>
326 <param name="header">The header to add to the collection.</param>
327 <param name="value">The content of the header.</param>
328 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
329 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="T:System.Net.HttpResponseHeader"></see>.</exception>
331 <member name="M:System.Net.WebHeaderCollection.Add(System.String,System.String)">
332 <summary>Inserts a header with the specified name and value into the collection.</summary>
333 <param name="name">The header to add to the collection.</param>
334 <param name="value">The content of the header.</param>
335 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> is null, <see cref="F:System.String.Empty"></see>, or contains invalid characters. -or- <paramref name="name">name</paramref> is a restricted header that must be set with a property setting. -or- <paramref name="value">value</paramref> contains invalid characters.</exception>
336 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
338 <member name="M:System.Net.WebHeaderCollection.AddWithoutValidate(System.String,System.String)">
339 <summary>Inserts a header into the collection without checking whether the header is on the restricted header list.</summary>
340 <param name="headerName">The header to add to the collection.</param>
341 <param name="headerValue">The content of the header.</param>
342 <exception cref="T:System.ArgumentException"><paramref name="headerName">headerName</paramref> is null, <see cref="F:System.String.Empty"></see>, or contains invalid characters. -or- <paramref name="headerValue">headerValue</paramref> contains invalid characters.</exception>
343 <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>
345 <member name="P:System.Net.WebHeaderCollection.AllKeys">
346 <summary>Gets all header names (keys) in the collection.</summary>
347 <returns>An array of type <see cref="T:System.String"></see> containing all header names in a Web request.</returns>
349 <member name="M:System.Net.WebHeaderCollection.Clear">
350 <summary>Removes all headers from the collection.</summary>
352 <member name="P:System.Net.WebHeaderCollection.Count">
353 <summary>Gets the number of headers in the collection.</summary>
354 <returns>An <see cref="T:System.Int32"></see> indicating the number of headers in a request.</returns>
356 <member name="M:System.Net.WebHeaderCollection.Get(System.Int32)">
357 <summary>Gets the value of a particular header in the collection, specified by an index into the collection.</summary>
358 <param name="index">The zero-based index of the key to get from the collection.</param>
359 <returns>A <see cref="T:System.String"></see> containing the value of the specified header.</returns>
360 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> is negative. -or- <paramref name="index">index</paramref> exceeds the size of the collection.</exception>
362 <member name="M:System.Net.WebHeaderCollection.Get(System.String)">
363 <summary>Gets the value of a particular header in the collection, specified by the name of the header.</summary>
364 <param name="name">The name of the Web header.</param>
365 <returns>A <see cref="T:System.String"></see> holding the value of the specified header.</returns>
367 <member name="M:System.Net.WebHeaderCollection.GetEnumerator">
368 <summary>Returns an enumerator that can iterate through the <see cref="T:System.Net.WebHeaderCollection"></see> instance.</summary>
369 <returns>An <see cref="T:System.Collections.IEnumerator"></see> for the <see cref="T:System.Net.WebHeaderCollection"></see>.</returns>
371 <member name="M:System.Net.WebHeaderCollection.GetKey(System.Int32)">
372 <summary>Gets the header name at the specified position in the collection.</summary>
373 <param name="index">The zero-based index of the key to get from the collection.</param>
374 <returns>A <see cref="T:System.String"></see> holding the header name.</returns>
375 <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index">index</paramref> is negative. -or- <paramref name="index">index</paramref> exceeds the size of the collection.</exception>
377 <member name="M:System.Net.WebHeaderCollection.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
378 <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> with the data needed to serialize the target object.</summary>
379 <param name="serializationInfo">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> to populate with data.</param>
380 <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that specifies the destination for this serialization.</param>
382 <member name="M:System.Net.WebHeaderCollection.GetValues(System.String)">
383 <summary>Gets an array of header values stored in a header.</summary>
384 <param name="header">The header to return.</param>
385 <returns>An array of header strings.</returns>
387 <member name="M:System.Net.WebHeaderCollection.GetValues(System.Int32)">
388 <summary>Gets an array of header values stored in the <paramref name="index">index</paramref> position of the header collection.</summary>
389 <param name="index">The header index to return.</param>
390 <returns>An array of header strings.</returns>
392 <member name="M:System.Net.WebHeaderCollection.IsRestricted(System.String)">
393 <summary>Tests whether the specified HTTP header can be set for the request.</summary>
394 <param name="headerName">The header to test.</param>
395 <returns>true if the header is restricted; otherwise false.</returns>
396 <exception cref="T:System.ArgumentNullException"><paramref name="headerName">headerName</paramref> is null or <see cref="F:System.String.Empty"></see>.</exception>
397 <exception cref="T:System.ArgumentException"><paramref name="headerName">headerName</paramref> contains invalid characters.</exception>
399 <member name="M:System.Net.WebHeaderCollection.IsRestricted(System.String,System.Boolean)">
400 <summary>Tests whether the specified HTTP header can be set for the request or the response.</summary>
401 <param name="headerName">The header to test.</param>
402 <param name="response">Does the Framework test the response or the request?</param>
403 <returns>true if the header is restricted; otherwise, false.</returns>
404 <exception cref="T:System.ArgumentNullException"><paramref name="headerName">headerName</paramref> is null or <see cref="F:System.String.Empty"></see>.</exception>
405 <exception cref="T:System.ArgumentException"><paramref name="headerName">headerName</paramref> contains invalid characters.</exception>
407 <member name="P:System.Net.WebHeaderCollection.Item(System.Net.HttpRequestHeader)">
408 <summary>Gets or sets the specified request header.</summary>
409 <param name="header">The request header value.</param>
410 <returns>A <see cref="T:System.String"></see> instance containing the specified header value.</returns>
411 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="T:System.Net.HttpRequestHeader"></see>.</exception>
413 <member name="P:System.Net.WebHeaderCollection.Item(System.Net.HttpResponseHeader)">
414 <summary>Gets or sets the specified response header.</summary>
415 <param name="header">The response header value.</param>
416 <returns>A <see cref="T:System.String"></see> instance containing the specified header.</returns>
417 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
418 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="T:System.Net.HttpResponseHeader"></see>.</exception>
420 <member name="P:System.Net.WebHeaderCollection.Item(System.String)">
421 <param name="name"></param>
424 <member name="P:System.Net.WebHeaderCollection.Keys">
425 <summary>Gets the collection of header names (keys) in the collection.</summary>
426 <returns>A <see cref="T:System.Collections.Specialized.NameObjectCollectionBase.KeysCollection"></see> containing all header names in a Web request.</returns>
428 <member name="M:System.Net.WebHeaderCollection.OnDeserialization(System.Object)">
429 <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable"></see> interface and raises the deserialization event when the deserialization is complete.</summary>
430 <param name="sender">The source of the deserialization event.</param>
432 <member name="M:System.Net.WebHeaderCollection.Remove(System.Net.HttpRequestHeader)">
433 <summary>Removes the specified header from the collection.</summary>
434 <param name="header">The <see cref="T:System.Net.HttpRequestHeader"></see> instance to remove from the collection.</param>
435 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="T:System.Net.HttpRequestHeader"></see>.</exception>
437 <member name="M:System.Net.WebHeaderCollection.Remove(System.Net.HttpResponseHeader)">
438 <summary>Removes the specified header from the collection.</summary>
439 <param name="header">The <see cref="T:System.Net.HttpResponseHeader"></see> instance to remove from the collection.</param>
440 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="T:System.Net.HttpResponseHeader"></see>.</exception>
442 <member name="M:System.Net.WebHeaderCollection.Remove(System.String)">
443 <summary>Removes the specified header from the collection.</summary>
444 <param name="name">The name of the header to remove from the collection.</param>
445 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref> is null<see cref="F:System.String.Empty"></see>.</exception>
446 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> is a restricted header. -or- <paramref name="name">name</paramref> contains invalid characters.</exception>
448 <member name="M:System.Net.WebHeaderCollection.Set(System.Net.HttpRequestHeader,System.String)">
449 <summary>Sets the specified header to the specified value.</summary>
450 <param name="header">The <see cref="T:System.Net.HttpRequestHeader"></see> value to set.</param>
451 <param name="value">The content of the header to set.</param>
452 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
453 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="T:System.Net.HttpRequestHeader"></see>.</exception>
455 <member name="M:System.Net.WebHeaderCollection.Set(System.Net.HttpResponseHeader,System.String)">
456 <summary>Sets the specified header to the specified value.</summary>
457 <param name="header">The <see cref="T:System.Net.HttpResponseHeader"></see> value to set.</param>
458 <param name="value">The content of the header to set.</param>
459 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
460 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.WebHeaderCollection"></see> instance does not allow instances of <see cref="T:System.Net.HttpResponseHeader"></see>.</exception>
462 <member name="M:System.Net.WebHeaderCollection.Set(System.String,System.String)">
463 <summary>Sets the specified header to the specified value.</summary>
464 <param name="name">The header to set.</param>
465 <param name="value">The content of the header to set.</param>
466 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref> is null or <see cref="F:System.String.Empty"></see>.</exception>
467 <exception cref="T:System.ArgumentOutOfRangeException">The length of <paramref name="value">value</paramref> is greater than 65535.</exception>
468 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> is a restricted header. -or- <paramref name="name">name</paramref> or <paramref name="value">value</paramref> contain invalid characters.</exception>
470 <member name="M:System.Net.WebHeaderCollection.ToByteArray">
471 <summary>Converts the <see cref="T:System.Net.WebHeaderCollection"></see> to a byte array..</summary>
472 <returns>A <see cref="T:System.Byte"></see> array holding the header collection.</returns>
474 <member name="M:System.Net.WebHeaderCollection.ToString">
475 <summary>This method is obsolete.</summary>
476 <returns>The <see cref="T:System.String"></see> representation of the collection.</returns>
478 <member name="M:System.Net.WebHeaderCollection.System#Collections#IEnumerable#GetEnumerator">
481 <member name="M:System.Net.WebHeaderCollection.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
482 <summary>Serializes this instance into the specified <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> object.</summary>
483 <param name="serializationInfo">The object into which this <see cref="T:System.Net.WebHeaderCollection"></see> will be serialized.</param>
484 <param name="streamingContext">The destination of the serialization.</param>