Back to product page

IndexOf method


Returns the index of a specific header in the collection.

Type

Integer. The index of value if found in the list; otherwise -1.

Syntax

  • C#
  • VB.NET
Int32 IndexOf(String name);
The IndexOf(name) syntax has these parts:
nameString. Name of header object to locate in the collection.

Int32 IndexOf(WebHeader Item);
The IndexOf(Item) syntax has these parts:
ItemWeOnlyDo.Server.WebHeader object. Header object to locate in the collection.

Function IndexOf(ByVal name As String) As Int32
The IndexOf(name) syntax has these parts:
nameString. Name of header object to locate in the collection.

Function IndexOf(ByVal Item As WebHeader) As Int32
The IndexOf(Item) syntax has these parts:
ItemWeOnlyDo.Server.WebHeader object. Header object to locate in the collection.

Platforms

Windows