Export (0) Print
Expand All
24 out of 32 rated this helpful - Rate this topic

System.IO Namespace

The System.IO namespace contains types that allow reading and writing to files and data streams, and types that provide basic file and directory support.

  Class Description
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps BinaryReader Reads primitive data types as binary values in a specific encoding.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps BinaryWriter Writes primitive types in binary to a stream and supports writing strings in a specific encoding.
Public class BufferedStream Adds a buffering layer to read and write operations on another stream. This class cannot be inherited.
Public class Directory Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.To browse the .NET Framework source code for this type, see the Reference Source.
Public class DirectoryInfo Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.To browse the .NET Framework source code for this type, see the Reference Source.
Public class DirectoryNotFoundException The exception that is thrown when part of a file or directory cannot be found.
Public class DriveInfo Provides access to information on a drive.
Public class DriveNotFoundException The exception that is thrown when trying to access a drive or share that is not available.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps EndOfStreamException The exception that is thrown when reading is attempted past the end of a stream.
Public class ErrorEventArgs Provides data for the FileSystemWatcher.Error event.
Public class File Provides static methods for the creation, copying, deletion, moving, and opening of a single file, and aids in the creation of FileStream objects.To browse the .NET Framework source code for this type, see the Reference Source.
Public class 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.
Public class FileInfo 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.To browse the .NET Framework source code for this type, see the Reference Source.
Public class FileLoadException The exception that is thrown when a managed assembly is found but cannot be loaded.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps FileNotFoundException The exception that is thrown when an attempt to access a file that does not exist on disk fails.
Public class FileStream Exposes a Stream around a file, supporting both synchronous and asynchronous read and write operations.To browse the .NET Framework source code for this type, see the Reference Source.
Public class FileSystemEventArgs Provides data for the directory events: Changed, Created, Deleted.
Public class FileSystemInfo Provides the base class for both FileInfo and DirectoryInfo objects.
Public class FileSystemWatcher Listens to the file system change notifications and raises events when a directory, or file in a directory, changes.To browse the .NET Framework source code for this type, see the Reference Source.
Public class InternalBufferOverflowException The exception thrown when the internal buffer overflows.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps InvalidDataException The exception that is thrown when a data stream is in an invalid format.
Public class IODescriptionAttribute Sets the description visual designers can display when referencing an event, extender, or property.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps IOException The exception that is thrown when an I/O error occurs.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps MemoryStream Creates a stream whose backing store is memory.To browse the .NET Framework source code for this type, see the Reference Source.
Public class Supported in .NET for Windows Store apps Path Performs operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner.To browse the .NET Framework source code for this type, see the Reference Source.
Public class PathTooLongException The exception that is thrown when a path or file name is longer than the system-defined maximum length.
Public class PipeException Thrown when an error occurs within a named pipe.
Public class RenamedEventArgs Provides data for the Renamed event.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps Stream Provides a generic view of a sequence of bytes. This is an abstract class.To browse the .NET Framework source code for this type, see the Reference Source.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps StreamReader Implements a TextReader that reads characters from a byte stream in a particular encoding.To browse the .NET Framework source code for this type, see the Reference Source.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps StreamWriter Implements a TextWriter for writing characters to a stream in a particular encoding.To browse the .NET Framework source code for this type, see the Reference Source.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps StringReader Implements a TextReader that reads from a string.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps StringWriter Implements a TextWriter for writing information to a string. The information is stored in an underlying StringBuilder.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps TextReader Represents a reader that can read a sequential series of characters.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps TextWriter Represents a writer that can write a sequential series of characters. This class is abstract.
Public class UnmanagedMemoryAccessor Provides random access to unmanaged blocks of memory from managed code.
Public class UnmanagedMemoryStream Provides access to unmanaged blocks of memory from managed code.
Public class Supported in .NET for Windows Store apps WindowsRuntimeStorageExtensions Contains extension methods for the IStorageFile and IStorageFolder interfaces in the Windows Runtime when developing Windows Store apps.
Public class Supported in .NET for Windows Store apps WindowsRuntimeStreamExtensions Contains extension methods for converting between streams in the Windows Runtime and managed streams in the .NET for Windows Store apps.
  Structure Description
Public structure WaitForChangedResult Contains information on the change that occurred.
  Delegate Description
Public delegate ErrorEventHandler Represents the method that will handle the Error event of a FileSystemWatcher object.
Public delegate FileSystemEventHandler Represents the method that will handle the Changed, Created, or Deleted event of a FileSystemWatcher class.
Public delegate RenamedEventHandler Represents the method that will handle the Renamed event of a FileSystemWatcher class.
  Enumeration Description
Public enumeration DriveType Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown.
Public enumeration FileAccess Defines constants for read, write, or read/write access to a file.
Public enumeration FileAttributes Provides attributes for files and directories.
Public enumeration FileMode Specifies how the operating system should open a file.
Public enumeration FileOptions Represents advanced options for creating a FileStream object.
Public enumeration FileShare Contains constants for controlling the kind of access other FileStream objects can have to the same file.
Public enumeration HandleInheritability Specifies whether the underlying handle is inheritable by child processes.
Public enumeration NotifyFilters Specifies changes to watch for in a file or folder.
Public enumeration SearchOption Specifies whether to search the current directory, or the current directory and all subdirectories.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps SeekOrigin Specifies the position in a stream to use for seeking.
Public enumeration WatcherChangeTypes Changes that might occur to a file or directory.
Show:
© 2014 Microsoft. All rights reserved.