The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
WebHeaderCollection::Remove Method (HttpRequestHeader)
.NET Framework (current version)
Removes the specified header from the collection.
Assembly: System (in System.dll)
Parameters
- header
-
Type:
System.Net::HttpRequestHeader
The HttpRequestHeader instance to remove from the collection.
| Exception | Condition |
|---|---|
| InvalidOperationException | This WebHeaderCollection instance does not allow instances of HttpRequestHeader. |
Remove deletes the specified header from the collection. If the specified header does not exist, the method does nothing.
.NET Framework
Available since 2.0
Available since 2.0
Show: