ESRI.ArcGIS.ADF
IndexOf Method
See Also  Send comments on this topic.
ESRI.ArcGIS.ADF Namespace > StringCollection Class : IndexOf Method




searchString
The string to locate. The value can be a null reference (Nothing in Visual Basic).
Searches for the specified string and returns the zero-based index of the first occurrence within the StringCollection.

Syntax

Visual Basic (Declaration) 
Public Function IndexOf( _
   ByVal searchString As String _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As StringCollection
Dim searchString As String
Dim value As Integer
 
value = instance.IndexOf(searchString)
C# 
public int IndexOf( 
   string searchString
)

Parameters

searchString
The string to locate. The value can be a null reference (Nothing in Visual Basic).

Return Value

The zero-based index of the first occurrence of value in the StringCollection, if found; otherwise, -1.

See Also

© 2010 All Rights Reserved.