← Interactive API Explorer
Namespace: System

NullReferenceException

The exception that is thrown when there is an attempt to dereference a null object reference.

Methods (1)

NullReferenceException(String)Constructor
Initializes a new instance of the NullReferenceException class with a specified error message.
ParameterDescription
messageA String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.