← Interactive API Explorer
Namespace: System.IO

EndOfStreamException

The exception that is thrown when reading is attempted past the end of a stream.

Methods (1)

EndOfStreamException(String)Constructor
Initializes a new instance of the EndOfStreamException class with its message string set to message and its HRESULT set to COR_E_ENDOFSTREAM.
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.