Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WebHeaderCollection.Remove Method (HttpRequestHeader)

Removes the specified header from the collection.

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

'Declaration
Public Sub Remove ( _
	header As HttpRequestHeader _
)

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