Error.ArgumentTooLarge Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates an ArgumentOutOfRangeException with a message saying that the argument must be less than or equal to maxValue and logs it with Error.

Namespace:  System.Web.Http.Common
Assembly:  System.Web.Http.Common (in System.Web.Http.Common.dll)

Syntax

'Declaration
Public Shared Function ArgumentTooLarge ( _
    parameterName As String, _
    actualValue As Object, _
    maxValue As Object _
) As ArgumentOutOfRangeException
public static ArgumentOutOfRangeException ArgumentTooLarge(
    string parameterName,
    Object actualValue,
    Object maxValue
)
public:
static ArgumentOutOfRangeException^ ArgumentTooLarge(
    String^ parameterName, 
    Object^ actualValue, 
    Object^ maxValue
)
static member ArgumentTooLarge : 
        parameterName:string * 
        actualValue:Object * 
        maxValue:Object -> ArgumentOutOfRangeException 
public static function ArgumentTooLarge(
    parameterName : String, 
    actualValue : Object, 
    maxValue : Object
) : ArgumentOutOfRangeException

Parameters

  • parameterName
    Type: System.String
    The name of the parameter that caused the current exception.
  • actualValue
    Type: System.Object
    The value of the argument that causes this exception.

Return Value

Type: System.ArgumentOutOfRangeException
The logged Exception.

.NET Framework Security

See Also

Reference

Error Class

System.Web.Http.Common Namespace