ArgumentNullException is thrown when a method is invoked and at least one of the passed arguments is nullNothingnullptra null reference (Nothing in Visual Basic) but should never be nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentNullException behaves identically to ArgumentException. It is provided so that application code can differentiate between exceptions caused by null arguments and exceptions caused by arguments that are not null. For errors caused by arguments that are not null, see ArgumentOutOfRangeException.
ArgumentNullException uses the HRESULT E_POINTER, which has the value 0x80004003.
For a list of initial property values for an instance of ArgumentNullException, see the ArgumentNullException constructors.