Bridge

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

Reports the zero-based index of the first occurrence of the specified string in the current System.String object. A parameter specifies the type of search to use for the specified string.

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

Syntax


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

Parameters

searchValue
Type: System..::..String
The string to search for.
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.