Represents an exception that is thrown when an attempt is made to access an array outside of its upper or lower bound.
Object
Exception
SystemException
CoreException
IndexOutOfRangeException
[Visual Basic] NotInheritable Public Class IndexOutOfRangeException Inherits CoreException [C#] public sealed class IndexOutOfRangeException : CoreException [C++] public __gc __sealed class IndexOutOfRangeException : public CoreException [JScript] public class IndexOutOfRangeException extends CoreException
The IndexOutOfRangeException is the exception class that is thrown for an invalid array indices.
Namespace: System
Assembly: mscorlib.dll