Error.ArgumentNull Method (String, String, Object[])
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates an ArgumentNullException 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 ArgumentNull ( _
parameterName As String, _
messageFormat As String, _
ParamArray messageArgs As Object() _
) As ArgumentNullException
public static ArgumentNullException ArgumentNull(
string parameterName,
string messageFormat,
params Object[] messageArgs
)
public:
static ArgumentNullException^ ArgumentNull(
String^ parameterName,
String^ messageFormat,
... array<Object^>^ messageArgs
)
static member ArgumentNull :
parameterName:string *
messageFormat:string *
messageArgs:Object[] -> ArgumentNullException
public static function ArgumentNull(
parameterName : String,
messageFormat : String,
... messageArgs : Object[]
) : ArgumentNullException
Parameters
- parameterName
Type: System.String
The name of the parameter that caused the current 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.ArgumentNullException
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.