Export (0) Print
Expand All

IOException Constructor

.NET Framework 1.1

Initializes a new instance of the IOException class with its message string.

Overload List

Initializes a new instance of the IOException class with its message string set to the empty string (""), its HRESULT set to COR_E_IO, and its inner exception set to a null reference.

Supported by the .NET Compact Framework.

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

Initializes a new instance of the IOException class with its message string set to message, its HRESULT set to COR_E_IO, and its inner exception set to a null reference (Nothing in Visual Basic).

Supported by the .NET Compact Framework.

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

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

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

Initializes a new instance of the IOException 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 IOException(string, Exception);
[C++] public: IOException(String*, Exception*);
[JScript] public function IOException(String, Exception);

Initializes a new instance of the IOException class with its message string set to message and its HRESULT user-defined.

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

See Also

IOException Class | IOException Members | System.IO Namespace

Show:
© 2014 Microsoft