Export (0) Print
Expand All
30 out of 45 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.

  ClassDescription
Public classBinaryReaderReads primitive data types as binary values in a specific encoding.
Public classBinaryWriterWrites primitive types in binary to a stream and supports writing strings in a specific encoding.
Public classBufferedStreamAdds a buffering layer to read and write operations on another stream. This class cannot be inherited.
Public classDirectoryExposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.
Public classDirectoryInfoExposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.
Public classDirectoryNotFoundExceptionThe exception that is thrown when part of a file or directory cannot be found.
Public classDriveInfoProvides access to information on a drive.
Public classDriveNotFoundExceptionThe exception that is thrown when trying to access a drive or share that is not available.
Public classEndOfStreamExceptionThe exception that is thrown when reading is attempted past the end of a stream.
Public classErrorEventArgsProvides data for the Error event.
Public classFileProvides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.
Public classFileFormatExceptionThe 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 classFileInfoProvides 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.
Public classFileLoadExceptionThe exception that is thrown when a managed assembly is found but cannot be loaded.
Public classFileNotFoundExceptionThe exception that is thrown when an attempt to access a file that does not exist on disk fails.
Public classFileStreamExposes a Stream around a file, supporting both synchronous and asynchronous read and write operations.
Public classFileSystemEventArgsProvides data for the directory events: Changed, Created, Deleted.
Public classFileSystemInfoProvides the base class for both FileInfo and DirectoryInfo objects.
Public classFileSystemWatcherListens to the file system change notifications and raises events when a directory, or file in a directory, changes.
Public classInternalBufferOverflowExceptionThe exception thrown when the internal buffer overflows.
Public classInvalidDataExceptionThe exception that is thrown when a data stream is in an invalid format.
Public classIODescriptionAttributeSets the description visual designers can display when referencing an event, extender, or property.
Public classIOExceptionThe exception that is thrown when an I/O error occurs.
Public classMemoryStreamCreates a stream whose backing store is memory.
Public classPathPerforms operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner.
Public classPathTooLongExceptionThe exception that is thrown when a path or file name is longer than the system-defined maximum length.
Public classPipeExceptionThrown when an error occurs within a named pipe.
Public classRenamedEventArgsProvides data for the Renamed event.
Public classStreamProvides a generic view of a sequence of bytes.
Public classStreamReaderImplements a TextReader that reads characters from a byte stream in a particular encoding.
Public classStreamWriterImplements a TextWriter for writing characters to a stream in a particular encoding.
Public classStringReaderImplements a TextReader that reads from a string.
Public classStringWriterImplements a TextWriter for writing information to a string. The information is stored in an underlying StringBuilder.
Public classTextReaderRepresents a reader that can read a sequential series of characters.
Public classTextWriterRepresents a writer that can write a sequential series of characters. This class is abstract.
Public classUnmanagedMemoryAccessorProvides random access to unmanaged blocks of memory from managed code.
Public classUnmanagedMemoryStreamProvides access to unmanaged blocks of memory from managed code.
  StructureDescription
Public structureWaitForChangedResultContains information on the change that occurred.
  DelegateDescription
Public delegateErrorEventHandlerRepresents the method that will handle the Error event of a FileSystemWatcher object.
Public delegateFileSystemEventHandlerRepresents the method that will handle the Changed, Created, or Deleted event of a FileSystemWatcher class.
Public delegateRenamedEventHandlerRepresents the method that will handle the Renamed event of a FileSystemWatcher class.
  EnumerationDescription
Public enumerationDriveTypeDefines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown.
Public enumerationFileAccessDefines constants for read, write, or read/write access to a file.
Public enumerationFileAttributesProvides attributes for files and directories.
Public enumerationFileModeSpecifies how the operating system should open a file.
Public enumerationFileOptionsRepresents additional options for creating a FileStream object.
Public enumerationFileShareContains constants for controlling the kind of access other FileStream objects can have to the same file.
Public enumerationHandleInheritabilitySpecifies whether the underlying handle is inheritable by child processes.
Public enumerationNotifyFiltersSpecifies changes to watch for in a file or folder.
Public enumerationSearchOptionSpecifies whether to search the current directory, or the current directory and all subdirectories.
Public enumerationSeekOriginProvides the fields that represent reference points in streams for seeking.
Public enumerationWatcherChangeTypesChanges that might occur to a file or directory.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.