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.
- maxValue
Type: System.Object
The maximum size of the argument.
Return Value
Type: System.ArgumentOutOfRangeException
The logged Exception.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.