Name

ArgumentNullException

Synopsis

This exception is a subclass of ArgumentException and indicates that a null parameter value was received by a method that does not accept nulls.

public class ArgumentNullException : ArgumentException {
// Public Constructors
   public ArgumentNullException( );
   public ArgumentNullException(string paramName);
   public ArgumentNullException(string paramName, string message);
// Protected Constructors
   protected ArgumentNullException(System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);
}

Hierarchy

Object Exception(System.Runtime.Serialization.ISerializable) SystemException ArgumentException ArgumentNullException

Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.