ArgumentOutOfRangeException

ArgumentOutOfRangeException


The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.


Implements:

ArgumentException 
Exception 
IObject 
SystemException 

Public:

Types:

NameDescription
 InvocationMethod 

Properties:

NameDescription
 ActualValue (get) Returns the actual value that caused the exception to be thrown.  
 Data (get) Returns a key/value collection used to contain user-defined specific information about the exception.  
 ErrorNumber (get) Returns the VB error number associated with this exception instance.  
 HelpLink (get) Gets a link to a help file associated with the exception.  
 HelpLink (let) Sets a link to a help file associated with the exception.  
 HResult (get) Gets the HRESULT, a coded numerical value that is assigned to a specific exception.  
 InnerException (get) Gets the exception that caused the Subclassed exception to be thrown.  
 Message (get) Gets the error message associated with the Subclass exception.  
 ParamName (get) Returns the parameter name that caused the exception.  
 Source (get) Gets a description of the source of the exception.  
 Source (let) Sets a description of the source of the exception.  

Methods:

NameDescription
 Equals Provides a basic implementation of the Equals function of the IObject interface.  
 GetBaseException Gets the original exception that caused the chain of exceptions to occur.  
 GetHashCode Provides a basic implementation of the GetHashcode function of the IObject interface.  
 ToString Returns the exception message prepended with the type name of the Subclass Exception.  

Remarks

ArgumentOutOfRangeException is thrown when an argument is not Null and is outside of the allowable range of values.

An ArgumentOutOfRangeException works the same as an ArgumentException. It is used to distinguish between other argument exceptions and those that are out of a valid range.

See Also

Project CorLib Overview

Class ArgumentOutOfRangeException Overview

Constructors

ExceptionMethods

Exception

ArgumentException

SystemException