Initializes a new instance of IndexOutOfRangeException with a specified message.
[Visual Basic] Overloads Public Sub New( _ ByVal message As String _ ) [C#] public IndexOutOfRangeException( string message ); [C++] public: IndexOutOfRangeException( String* message ); [JScript] public function IndexOutOfRangeException( message : String );
IndexOutOfRangeException inherits from the Exception class. This constructor sets the properties of the Exception object as follows:
Property Type | Condition |
---|---|
InnerException | null |
Message | The message string. |
IndexOutOfRangeException Class | IndexOutOfRangeException Members | System Namespace | IndexOutOfRangeException Constructor Overload List