Class 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.
Inherited Members
Namespace: System
Assembly: mscorlib.dll
Syntax
public class ArgumentOutOfRangeException : ArgumentException
Constructors
ArgumentOutOfRangeException()
Initializes a new instance of the ArgumentOutOfRangeException class.
Declaration
public ArgumentOutOfRangeException()
ArgumentOutOfRangeException(string, string)
Initializes a new instance of the ArgumentOutOfRangeException class with the name of the parameter that causes this exception and a specified error message.
Declaration
public ArgumentOutOfRangeException(string paramName, string message)
Parameters
Type | Name | Description |
---|---|---|
string | paramName | The name of the parameter that caused the exception. |
string | message | The message that describes the error. |
ArgumentOutOfRangeException(string)
Initializes a new instance of the ArgumentOutOfRangeException class with the name of the parameter that causes this exception.
Declaration
public ArgumentOutOfRangeException(string paramName)
Parameters
Type | Name | Description |
---|---|---|
string | paramName | The name of the parameter that causes this exception. |