Determines the index of a specific value in the collection

Namespace:  JHSoftware.SimpleDNSPlus
Assembly:  SDNSAPI (in SDNSAPI)
Version: 1.1.0.0 (1.1.0.0)

Syntax

C#
public int IndexOf(
	string item
)
Visual Basic (Declaration)
Public Function IndexOf ( _
	item As String _
) As Integer

Parameters

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

Return Value

The index of item if found in the collection; otherwise, -1.

Implements

IList<(Of <(T>)>)..::.IndexOf(T)

Remarks

If a value occurs multiple times in the collection, the IndexOf method always returns the first instance found.

See Also