String..::..IndexOf Method (String, Int32, 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, the number of characters in the current string
to search, and the type of search to use for the specified string.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public int IndexOf( string searchValue, int fromIndex, int count, StringComparison comparisonType )
<TemplateAttribute> _ Public Function IndexOf ( _ searchValue As String, _ fromIndex As Integer, _ count As Integer, _ comparisonType As StringComparison _ ) As Integer
[TemplateAttribute] public: int^ IndexOf( String^ searchValue, int^ fromIndex, int^ count, StringComparison^ comparisonType )
Parameters
- searchValue
- Type: System..::..String
The string to search for.
- fromIndex
- Type: System..::..Int32
The search starting position.
- count
- Type: System..::..Int32
The number of character positions to examine.
- comparisonType
- Type: System..::..StringComparison
One of the enumeration values that specifies the rules for the search.