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