| StringIndexOf Method (Char, Int32, Int32) | 
Reports the zero-based index of the first occurrence of the specified character in this instance. The search starts at a specified character position and examines a specified number of character positions.
 
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
 Syntax
Syntaxpublic int IndexOf(
	char value,
	int startIndex,
	int count
)
Parameters
- value
- Type: SystemChar
 A Unicode character to seek.
- startIndex
- Type: SystemInt32
 The search starting position.
- count
- Type: SystemInt32
 The number of character positions to examine.
Return Value
Type: 
Int32The zero-based index position of 
value if that character is found, or -1 if it is not.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| ArgumentOutOfRangeException | count or startIndex is negative.-or- startIndex is greater than the length of this string.-or-count is greater than the length of this string minus startIndex. | 
 See Also
See Also