System.IO.IOException Class

The exception that is thrown when an I/O error occurs.

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.

The Base Class Library includes the following types, each of which is a derived class of IOException :

Where appropriate, use these types instead of IOException.

System.IO.IOException uses the HRESULT COR_E_IO which has the value 0x80131620.

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