System.IO.IOException Class
Represents the error that occurs when an I/O operation fails.

See Also: IOException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class IOException : SystemException

Remarks

System.IO.IOException is the base class for exceptions thrown while accessing information using streams, files and directories.

Note:

The Base Class Library includes the following types, each of which is derived from System.IO.IOException:

Where appropriate, use these types instead of System.IO.IOException.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0