Back to product page

IndexOf method


Determines the index of a specific item in the collection.

Type

Integer

Syntax

  • C#
  • VB.NET
Int32 IndexOf(String Name);
The IndexOf(Name) syntax has these parts:
NameName of session variable to locate in the collection.
Return valueThe index of value if found in the list; otherwise, -1.

Function IndexOf(ByVal Name As String) As Int32
The IndexOf(Name) syntax has these parts:
NameName of session variable to locate in the collection.
Return valueThe index of value if found in the list; otherwise, -1.

Platforms

Windows