log4net SDK Reference |

# SystemInfo.CreateArgumentOutOfRangeException Method

Create an ArgumentOutOfRangeException

[Visual Basic]
Public Shared Function CreateArgumentOutOfRangeException( _
ByVal parameterName As String, _
ByVal actualValue As Object, _
ByVal message As String _
) As ArgumentOutOfRangeException
[C#]
public static ArgumentOutOfRangeException CreateArgumentOutOfRangeException(
string parameterName,
object actualValue,
string message
);

#### Parameters

parameterName
  The name of the parameter that caused the exception
actualValue
  The value of the argument that causes this exception
message
  The message that describes the error

#### Return Value

the ArgumentOutOfRangeException object

#### Remarks

Create a new instance of the ArgumentOutOfRangeException class with a specified error message, the parameter name, and the value of the argument.

The Compact Framework does not support the 3 parameter constructor for the ArgumentOutOfRangeException type. This method provides an implementation that works for all platforms.

#### See Also

SystemInfo Class | log4net.Util Namespace