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:
SystemAssembly: 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.