Table of Contents

Class ArgumentOutOfRangeException

Namespace
System
Assembly
mscorlib.dll

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

public class ArgumentOutOfRangeException : ArgumentException
Inheritance
ArgumentOutOfRangeException
Inherited Members
Extension Methods

Constructors

ArgumentOutOfRangeException()

Initializes a new instance of the ArgumentOutOfRangeException class.

public ArgumentOutOfRangeException()

ArgumentOutOfRangeException(string)

Initializes a new instance of the ArgumentOutOfRangeException class with the name of the parameter that causes this exception.

public ArgumentOutOfRangeException(string paramName)

Parameters

paramName string

The name of the parameter that causes this exception.

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.

public ArgumentOutOfRangeException(string paramName, string message)

Parameters

paramName string

The name of the parameter that caused the exception.

message string

The message that describes the error.