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(stringparamName
); public ArgumentNullException(stringparamName
, stringmessage
); // Protected Constructors protected ArgumentNullException(System.Runtime.Serialization.SerializationInfoinfo
, System.Runtime.Serialization.StreamingContextcontext
); }
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.