Error.ArgumentOutOfRange 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 the provided properties 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 ArgumentOutOfRange ( _
parameterName As String, _
actualValue As Object, _
messageFormat As String, _
ParamArray messageArgs As Object() _
) As ArgumentOutOfRangeException
public static ArgumentOutOfRangeException ArgumentOutOfRange(
string parameterName,
Object actualValue,
string messageFormat,
params Object[] messageArgs
)
public:
static ArgumentOutOfRangeException^ ArgumentOutOfRange(
String^ parameterName,
Object^ actualValue,
String^ messageFormat,
... array<Object^>^ messageArgs
)
static member ArgumentOutOfRange :
parameterName:string *
actualValue:Object *
messageFormat:string *
messageArgs:Object[] -> ArgumentOutOfRangeException
public static function ArgumentOutOfRange(
parameterName : String,
actualValue : Object,
messageFormat : String,
... messageArgs : 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.
- messageFormat
Type: System.String
A composite format string explaining the reason for the exception.
- messageArgs
Type: System.Object[]
An object array that contains zero or more objects to format.
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.