This documentation is archived and is not being maintained.

IOException Constructor (String)

.NET Framework 1.1

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).

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

Parameters

message
A 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.

Remarks

The constructor initializes the Message property of the new instance using message.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

IOException Class | IOException Members | System.IO Namespace | IOException Constructor Overload List | Working with I/O | Reading Text from a File | Writing Text to a File

Show: