Searches for the specified item and returns the zero-based index of the first occurrence within the collection.

Namespace:  C1.Web.Command
Assembly:  C1.Web.Command.2 (in C1.Web.Command.2.dll)

Syntax

C#
public int IndexOf(
	Object value
)
Visual Basic (Declaration)
Public Function IndexOf ( _
	value As Object _
) As Integer

Parameters

value
Type: System..::.Object
The item to locate in the collection.

Return Value

The zero-based index of the first occurrence of item in the collection, if found; otherwise, -1

See Also