IndexOutOfRangeException Class
The exception that is thrown when an attempt is made to access an object in an array and the index number of that object is outside the bounds of the array.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
[SerializableAttribute]
public class IndexOutOfRangeException : SystemException
Remarks
The IndexOutOfRangeException class cannot be inherited.
This class uses HRESULT COR_E_INDEXOUTOFRANGE, which has the value 0x80131508.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.