System.IO Namespace

July 28, 2014

The System.IO namespace contains enumerations for file modes, file access, file sharing, and classes for path operations and manipulating streams. Windows Phone applications do not use the file system of the operating system and are restricted to using isolated storage to persist and access files, so this namespace does not provide any additional functionality. For more information about how Windows Phone applications use isolated storage, see Data for Windows Phone 8.

  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 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 classDirectoryNotFoundExceptionInfrastructure. The exception that is thrown when part of a file or directory cannot be found.
Public classEndOfStreamExceptionThe exception that is thrown when reading is attempted past the end of a stream.
Public classFileProvides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.
Public classFileInfoProvides 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 fails.
Public classFileStreamExposes a Stream around a file, supporting both synchronous and asynchronous read and write operations.
Public classFileSystemInfoProvides the base class for both FileInfo and DirectoryInfo objects.
Public classInvalidDataExceptionThe exception that is thrown when a data stream is in an invalid format.
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 pathname or filename is longer than the system-defined maximum length.
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 classUnmanagedMemoryStreamInfrastructure. Provides access to unmanaged blocks of memory from managed code.
Public classWindowsRuntimeStorageExtensions
Public classWindowsRuntimeStreamExtensions

  EnumerationDescription
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 enumerationFileShareContains constants for controlling the kind of access other IsolatedStorageFileStream objects can have to the same file.
Public enumerationSeekOriginProvides the fields that represent reference points in streams for seeking.

Show:
© 2014 Microsoft