Initializes an instance of the NullReferenceException class with default properties.
[Visual Basic] Overloads Public Sub New() [C#] public NullReferenceException(); [C++] public: NullReferenceException(); [JScript] public function NullReferenceException();
NullReferenceException inherits from the Exception class. This constructor sets the properties of the NullReferenceException object as follows:
Property Type | Condition |
---|---|
InnerException | null |
Message | The empty string. |
NullReferenceException Class | NullReferenceException Members | System Namespace | NullReferenceException Constructor Overload List