Export (0) Print
Expand All

EndOfStreamException Constructor

.NET Framework 1.1

Initializes a new instance of the EndOfStreamException class.

Overload List

Initializes a new instance of the EndOfStreamException class with its message string set to a system-supplied message and its HRESULT set to COR_E_ENDOFSTREAM.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public EndOfStreamException();
[C++] public: EndOfStreamException();
[JScript] public function EndOfStreamException();

Initializes a new instance of the EndOfStreamException class with its message string set to message and its HRESULT set to COR_E_ENDOFSTREAM.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String)
[C#] public EndOfStreamException(string);
[C++] public: EndOfStreamException(String*);
[JScript] public function EndOfStreamException(String);

Initializes a new instance of the EndOfStreamException class with the specified serialization and context information.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected EndOfStreamException(SerializationInfo, StreamingContext);
[C++] protected: EndOfStreamException(SerializationInfo*, StreamingContext);
[JScript] protected function EndOfStreamException(SerializationInfo, StreamingContext);

Initializes a new instance of the EndOfStreamException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, Exception)
[C#] public EndOfStreamException(string, Exception);
[C++] public: EndOfStreamException(String*, Exception*);
[JScript] public function EndOfStreamException(String, Exception);

See Also

EndOfStreamException Class | EndOfStreamException Members | System.IO Namespace

Show:
© 2014 Microsoft