Bridge

String..::..IndexOf Method (String, Int32, StringComparison)

Reports the zero-based index of the first occurrence of the specified string in the current System.String object. Parameters specify the starting search position in the current string and the type of search to use for the specified string.

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

Syntax


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

Parameters

searchValue
Type: System..::..String
The string to search for.
fromIndex
Type: System..::..Int32
The search starting position.
comparisonType
Type: System..::..StringComparison
One of the enumeration values that specifies the rules for the search.

Return Value

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