System.IO 名前空間
ファイルとデータ ストリームに対する読み書きを可能にする型、およびファイルとディレクトリに対する基本的なサポートを提供する型が含まれます。 Contains types that allow reading and writing to files and data streams, and types that provide basic file and directory support.
クラス
BinaryReader |
プリミティブ データ型を特定のエンコーディングのバイナリ値として読み取ります。Reads primitive data types as binary values in a specific encoding. |
BinaryWriter |
プリミティブ型をバイナリでストリームに書き込みます。特定のエンコーディングの文字列の書き込みをサポートします。Writes primitive types in binary to a stream and supports writing strings in a specific encoding. |
BufferedStream |
他のストリームの読み取りおよび書き込み操作に対してバッファリング レイヤーを追加します。Adds a buffering layer to read and write operations on another stream. このクラスは継承できません。This class cannot be inherited. |
Directory |
ディレクトリやサブディレクトリを通じて、作成、移動、および列挙するための静的メソッドを公開します。Exposes static methods for creating, moving, and enumerating through directories and subdirectories. このクラスは継承できません。This class cannot be inherited. |
DirectoryInfo |
ディレクトリとサブディレクトリを作成、削除、および列挙するためのインスタンス メソッドを公開します。Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. このクラスは継承できません。This class cannot be inherited. |
DirectoryNotFoundException |
ファイルまたはディレクトリの一部が見つからない場合にスローされる例外。The exception that is thrown when part of a file or directory cannot be found. |
DriveInfo |
ドライブに関する情報へのアクセスを提供します。Provides access to information on a drive. |
DriveNotFoundException |
使用できないドライブまたは共有にアクセスしようとするとスローされる例外。The exception that is thrown when trying to access a drive or share that is not available. |
EndOfStreamException |
ストリームの末尾を越えて読み取ろうとしたときにスローされる例外。The exception that is thrown when reading is attempted past the end of a stream. |
EnumerationOptions |
ファイルとディレクトリの列挙オプションを提供します。Provides file and directory enumeration options. |
ErrorEventArgs | |
File |
1 つのファイルの作成、コピー、削除、移動、オープンのための静的メソッドを提供し、FileStream オブジェクトの作成を支援します。Provides static methods for the creation, copying, deletion, moving, and opening of a single file, and aids in the creation of FileStream objects. |
FileFormatException |
特定のファイル形式仕様に従う必要がある入力ファイルまたはデータ ストリームが正しくない場合にスローされる例外。The exception that is thrown when an input file or a data stream that is supposed to conform to a certain file format specification is malformed. |
FileInfo |
ファイルを作成、コピー、削除、移動、および開くためのプロパティおよびインスタンス メソッドを提供し、FileStream オブジェクトを作成できるようにします。Provides properties and instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects. このクラスは継承できません。This class cannot be inherited. |
FileLoadException |
マネージド アセンブリが見つかっても読み込むことができない場合にスローされる例外。The exception that is thrown when a managed assembly is found but cannot be loaded. |
FileNotFoundException |
ディスク上に存在しないファイルにアクセスしようとして失敗したときにスローされる例外。The exception that is thrown when an attempt to access a file that does not exist on disk fails. |
FileStream |
同期および非同期の読み取り操作と書き込み操作をサポートするファイル用の Stream を提供します。Provides a Stream for a file, supporting both synchronous and asynchronous read and write operations. |
FileSystemAclExtensions |
ファイルとディレクトリのアクセス制御リスト (ACL) セキュリティ属性を操作するための、Windows 固有の静的拡張メソッドを提供します。Provides Windows-specific static extension methods for manipulating Access Control List (ACL) security attributes for files and directories. |
FileSystemEventArgs |
ディレクトリ イベントの Changed、Created、Deleted にデータを提供します。Provides data for the directory events: Changed, Created, Deleted. |
FileSystemInfo |
FileInfo オブジェクトと DirectoryInfo オブジェクトの両方の基本クラスを提供します。Provides the base class for both FileInfo and DirectoryInfo objects. |
FileSystemWatcher |
ファイル システムの変更通知を待機し、ディレクトリまたはディレクトリ内のファイルが変更されたときにイベントを発生させます。Listens to the file system change notifications and raises events when a directory, or file in a directory, changes. |
InternalBufferOverflowException |
内部バッファーがオーバーフローした場合にスローされる例外。The exception thrown when the internal buffer overflows. |
InvalidDataException |
データ ストリームが無効な形式である場合にスローされる例外。The exception that is thrown when a data stream is in an invalid format. |
IODescriptionAttribute |
イベント、エクステンダー、またはプロパティの参照時に、ビジュアル デザイナーで表示できる説明を設定します。Sets the description visual designers can display when referencing an event, extender, or property. |
IOException |
I/O エラーが発生したときにスローされる例外。The exception that is thrown when an I/O error occurs. |
MemoryStream |
バッキング ストアとしてメモリを使用するストリームを作成します。Creates a stream whose backing store is memory. |
Path |
ファイルまたはディレクトリのパス情報を格納する String インスタンスで操作を実行します。Performs operations on String instances that contain file or directory path information. これらの操作は、プラットフォーム間で実行されます。These operations are performed in a cross-platform manner. |
PathTooLongException |
パス名または完全修飾ファイル名がシステム定義の最大長を超えている場合にスローされる例外。The exception that is thrown when a path or fully qualified file name is longer than the system-defined maximum length. |
PipeException |
エラーが名前付きパイプ内に発生すると、スローされます。Thrown when an error occurs within a named pipe. |
RenamedEventArgs | |
Stream |
バイト シーケンスのジェネリック ビューを提供します。Provides a generic view of a sequence of bytes. これは抽象クラスです。This is an abstract class. |
StreamReader |
特定のエンコーディングのバイト ストリームから文字を読み込む TextReader を実装します。Implements a TextReader that reads characters from a byte stream in a particular encoding. |
StreamWriter |
文字を特定のエンコーディングでストリームに書き込むための TextWriter を実装しています。Implements a TextWriter for writing characters to a stream in a particular encoding. |
StringReader |
文字列から読み取る TextReader を実装します。Implements a TextReader that reads from a string. |
StringWriter |
文字列に情報を書き込む TextWriter を実装します。Implements a TextWriter for writing information to a string. 情報は、基になる StringBuilder に格納されます。The information is stored in an underlying StringBuilder. |
TextReader |
一連の文字を読み取ることができるリーダーを表します。Represents a reader that can read a sequential series of characters. |
TextWriter |
一連の文字を書き込むことができるライターを表します。Represents a writer that can write a sequential series of characters. このクラスは抽象クラスです。This class is abstract. |
UnmanagedMemoryAccessor |
メモリのアンマネージド ブロックにマネージド コードからランダムにアクセスできるようにします。Provides random access to unmanaged blocks of memory from managed code. |
UnmanagedMemoryStream |
マネージド コードからメモリのアンマネージド ブロックにアクセスできるようにします。Provides access to unmanaged blocks of memory from managed code. |
WindowsRuntimeStorageExtensions |
Windows ストア アプリ開発時の Windows ランタイム内の IStorageFile インターフェイスおよび IStorageFolder インターフェイス用の拡張メソッドを格納します。Contains extension methods for the IStorageFile and IStorageFolder interfaces in the Windows Runtime when developing Windows Store apps. |
WindowsRuntimeStreamExtensions |
Windows ランタイムのストリームと Windows ストア アプリ用 .NET のマネージド ストリームとの間の変換を実行するための拡張メソッドが含まれます。Contains extension methods for converting between streams in the Windows Runtime and managed streams in the .NET for Windows Store apps. |
構造体
WaitForChangedResult |
発生した変更についての情報を格納します。Contains information on the change that occurred. |
列挙型
DriveType |
CDRom、Fixed、Network、NoRootDirectory、Ram、Removable、Unknown など、ドライブの種類を示す定数を定義します。Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown. |
FileAccess |
ファイルの読み取り、書き込み、または読み取り/書き込みアクセスのための定数を定義します。Defines constants for read, write, or read/write access to a file. |
FileAttributes |
ファイルとディレクトリの属性を提供します。Provides attributes for files and directories. |
FileMode |
オペレーティング システムがファイルを開く方法を指定します。Specifies how the operating system should open a file. |
FileOptions |
FileStream オブジェクトを作成するための高度なオプションを表します。Represents advanced options for creating a FileStream object. |
FileShare |
同一のファイルに対して他の FileStream オブジェクトが保有できるアクセスの種類を制御する定数を格納します。Contains constants for controlling the kind of access other FileStream objects can have to the same file. |
HandleInheritability |
基になるハンドルが子プロセスで継承可能かどうかを指定します。Specifies whether the underlying handle is inheritable by child processes. |
MatchCasing |
照合に使う文字の大文字と小文字の区別の種類を指定します。Specifies the type of character casing to match. |
MatchType |
使用するワイルドカード一致の種類を指定します。Specifies the type of wildcard matching to use. |
NotifyFilters |
ファイルまたはフォルダーでウォッチする変更を指定します。Specifies changes to watch for in a file or folder. |
SearchOption |
現在のディレクトリを検索するのか、または現在のディレクトリとすべてのサブディレクトリを検索するのかを指定します。Specifies whether to search the current directory, or the current directory and all subdirectories. |
SeekOrigin |
シークに使用するストリームの場所を指定します。Specifies the position in a stream to use for seeking. |
WatcherChangeTypes |
ファイルまたはディレクトリに発生する可能性がある変更。Changes that might occur to a file or directory. |
代理人
ErrorEventHandler |
FileSystemWatcher オブジェクトの Error イベントを処理するメソッドを表します。Represents the method that will handle the Error event of a FileSystemWatcher object. |
FileSystemEventHandler |
Changed クラスの Created イベント、Deleted イベント、または FileSystemWatcher イベントを処理するメソッドを表します。Represents the method that will handle the Changed, Created, or Deleted event of a FileSystemWatcher class. |
RenamedEventHandler |
Renamed クラスの FileSystemWatcher イベントを処理するメソッドを表します。Represents the method that will handle the Renamed event of a FileSystemWatcher class. |