Searches for the specified character and returns the zero-based index of the first occurrence within the entire source string.
Namespace:
?
System.Globalization
Assembly:
?
mscorlib (in mscorlib.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Overridable Function IndexOf ( _
source As String, _
value As Char _
) As Integer |
JavaScript |
---|
function indexOf(source, value); |
Return Value
The zero-based index of the first occurrence of value within the entire source, if found; otherwise, -1.
Exceptions
See Also