WebHeaderCollection.Remove Method (HttpResponseHeader)
.NET Framework (current version)
Removes the specified header from the collection.
Assembly: System (in System.dll)
Parameters
- header
-
Type:
System.Net.HttpResponseHeader
The HttpResponseHeader instance to remove from the collection.
| Exception | Condition |
|---|---|
| InvalidOperationException | This WebHeaderCollection instance does not allow instances of HttpResponseHeader. |
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: