Back to product page

Remove method


Removes header from the collection.

Type

Void

Syntax

  • C#
  • VB.NET
Void Remove(String Name);
The Remove(Name) syntax has these parts:
NameString expression as header name.

Void Remove(WebHeader Item);
The Remove(Item) syntax has these parts:
ItemWeOnlyDo.Server.WebHeader object. Header object to remove from the collection.

Sub Remove(ByVal Name As String)
The Remove(Name) syntax has these parts:
NameString expression as header name.

Sub Remove(ByVal Item As WebHeader)
The Remove(Item) syntax has these parts:
ItemWeOnlyDo.Server.WebHeader object. Header object to remove from the collection.

Remarks

This method removes header from the collection. You can specify Index to be header's name (Cookie, User-Agent,...), or you can specify it's index, starting from 0.

Platforms

Windows