asp.net.ph

ArgumentNullException Class

System Namespace


The exception that is thrown when a null reference ( Nothing in Visual Basic ) is passed to a method that does not accept it as a valid argument.

ArgumentNullException Class Members

Collapse   Constructors

Visibility Constructor Parameters
public ArgumentNullException ( )
public ArgumentNullException ( String paramName )
public ArgumentNullException ( String message , Exception innerException )
public ArgumentNullException ( String paramName , String message )

Remarks

ArgumentNullException is thrown when a method is invoked and at least one of the passed arguments is a null reference ( Nothing in Visual Basic ) and should never be null.

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.

See Also

Exception Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph