System.Net.WebHeaderCollection.Remove Method

Removes the specified header from the collection.

Syntax

public void Remove (HttpResponseHeader header)

Parameters

header
The System.Net.HttpResponseHeader instance to remove from the collection.

Remarks

WebHeaderCollection.Remove(HttpRequestHeader) deletes the specified header from the collection. If the specified header does not exist, the method does nothing.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0