Export (0) Print
Expand All

WebHeaderCollection.Remove Method (HttpRequestHeader)

Removes the specified header from the collection.

Namespace:  System.Net
Assembly:  System (in System.dll)

member Remove : 
        header:HttpRequestHeader -> unit

Parameters

header
Type: System.Net.HttpRequestHeader

The HttpRequestHeader instance to remove from the collection.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft