System.Net.WebHeaderCollection.Remove Method

Removes the specified header from the collection.

Syntax

public void Remove (HttpRequestHeader header)

Parameters

header
The System.Net.HttpRequestHeader 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