SystemInfo CreateArgumentOutOfRangeException Method | Apache log4net™ SDK Documentation

Create an ArgumentOutOfRangeException

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static ArgumentOutOfRangeException CreateArgumentOutOfRangeException(
    	string parameterName,
    	Object actualValue,
    	string message
    )

    Public Shared Function CreateArgumentOutOfRangeException (
    	parameterName As String,
    	actualValue As Object,
    	message As String
    ) As ArgumentOutOfRangeException

    public:
    static ArgumentOutOfRangeException^ CreateArgumentOutOfRangeException(
    	String^ parameterName,
    	Object^ actualValue,
    	String^ message
    )

    static member CreateArgumentOutOfRangeException :
            parameterName : string *
            actualValue : Object *
            message : string -> ArgumentOutOfRangeException

#### Parameters

parameterName
  Type: System
  String
  The name of the parameter that caused the exception
actualValue
  Type: System
  Object
  The value of the argument that causes this exception
message
  Type: System
  String
  The message that describes the error

#### Return Value

Type: ArgumentOutOfRangeException
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

#### Reference

SystemInfo Class
log4net.Util Namespace