Partager via


SequenceContainer.IndexOf Method (T, Int32)

Returns the index of the first occurrence of element in sublist starting at position and ranging until the end of the Sequence. Returns -1 if elem does not occur.
If start is out of bounds, 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
)

Parameters

  • elem
  • start

Return Value

Returns Int32.

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

SequenceContainer Generic Class
SequenceContainer Members
Microsoft.Modeling Namespace