Back to product page

Contains method


Determines whether the collection contains a specific value.

Type

Boolean. True if object by specified Name exists in collection.

Syntax

  • C#
  • VB.NET
Boolean Contains(String name);
The Contains(name) syntax has these parts:
nameString. Name of WebHeaders object to locate in collection.

Boolean Contains(WebHeader Item);
The Contains(Item) syntax has these parts:
ItemWebHeader object. Header object to locate in the collection.

Function Contains(ByVal name As String) As Boolean
The Contains(name) syntax has these parts:
nameString. Name of WebHeaders object to locate in collection.

Function Contains(ByVal Item As WebHeader) As Boolean
The Contains(Item) syntax has these parts:
ItemWebHeader object. Header object to locate in the collection.

Platforms

Windows