Sequence.IndexOf Method (T, Int32, Int32)
Returns the index of the first occurrence of the specified element in this Sequence. The search starts at a specified index, and examines a specified number of elements. If the element is not found, the method returns -1. If the start index is out of range, or if the sum of the start index and the number of elements to examine is out of range, an exception will be thrown.
Namespace: Microsoft.Modeling
Assembly: Microsoft.Xrt.Runtime (in Microsoft.Xrt.Runtime.dll)
Usage
'Usage
Syntax
'Declaration
public int IndexOf (
T elem,
int start,
int count
)
Parameters
- elem
- start
- count
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP SP2 or later, Microsoft Windows Server 2008, Microsoft Windows Server 2003
See Also
Reference
Sequence Generic Class
Sequence Members
Microsoft.Modeling Namespace