IOException クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public Class IOException Inherits SystemException
[SerializableAttribute] [ComVisibleAttribute(true)] public class IOException : SystemException
[SerializableAttribute] [ComVisibleAttribute(true)] public ref class IOException : public SystemException
/** @attribute SerializableAttribute() */ /** @attribute ComVisibleAttribute(true) */ public class IOException extends SystemException
SerializableAttribute ComVisibleAttribute(true) public class IOException extends SystemException

IOException は、ストリーム、ファイル、およびディレクトリを使用して情報にアクセスするときにスローされる例外の基本クラスです。
基本クラス ライブラリには、次の型が含まれています。それぞれの型は、IOException の派生クラスです。
-
DirectoryNotFoundException
-
EndOfStreamException
-
FileLoadException
-
PathTooLongException
該当する場合は、IOException ではなくここで示した型を使用してください。
IOException は、値 0x80131620 の HRESULT COR_E_IO を使用します。

次のコード例は FileStream.Lock メソッドの例の一部です。
' Catch the IOException generated if the ' specified part of the file is locked. Catch ex As IOException Console.WriteLine( _ "{0}: The write operation could " & _ "not be performed because the " & _ "specified part of the file is " & _ "locked.", ex.GetType().Name) End Try
// Catch the IOException generated if the // specified part of the file is locked. catch(IOException e) { Console.WriteLine( "{0}: The write operation could not " + "be performed because the specified " + "part of the file is locked.", e.GetType().Name); }



Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- IOException クラスのページへのリンク