Bridge

String..::..IndexOf Method (String)

Reports the zero-based index of the first occurrence of the specified string in this instance.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public int IndexOf(
	string searchValue
)
<TemplateAttribute> _
Public Function IndexOf ( _
	searchValue As String _
) As Integer
[TemplateAttribute]
public:
int^ IndexOf(
	String^ searchValue
)

Parameters

searchValue
Type: System..::..String

Return Value

The zero-based index position of value if that string is found, or -1 if it is not. If value is Empty, the return value is 0.

Exceptions


ExceptionCondition
System..::..ArgumentNullExceptionvalue is null.