NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

System.IO Namespace

Classes

Class Description
BinaryReader Reads strings and primitive data types.
BinaryWriter Writes primitives types in binary from a Stream and supports writing Strings in a particular encoding.
BufferedStream Represents a buffered stream object.
Directory Exposes routines for creating, moving, and enumerating through directories and subdirectories.
DirectoryNotFoundException Returns an exception when trying to access a directory that doesn't exist on disk.
EndOfStreamException Returns an exception when reading is attempted past the end of a stream.
File Aids in the creation of FileStream objects and provides routines for the creation, copying, deletion, moving, and opening of files.
FileNotFoundException Represents a failed attempt to access a file that does not exist on disk.
FileStream Exposes a Stream around a file, supporting both synchronous and asynchronous methods.
FileSystemEntry Provides the base class for both File and Directory objects. This class is abstract.
FileSystemEventArgs Provides data for the directory events: TBD, System.IO.FileSystemEventArgs.Deleted.
FileSystemWatcher Listens to the system directory change notifications and raises events when a directory or file within a directory changes.
InternalBufferOverflowException Specifies the exception for an internal buffer overflow.
IOException Represents an occurrence of an I/O error.
MemoryStream Provides a way to create streams that have memory as a backing store instead of a disk or a network connection. The MemoryStream class creates a stream out of an array of bytes.
PathTooLongException Represents an exception that is thrown when a path name or filename is too long.
RenamedEventArgs Provides data for the System.IO.FileSystemWatcher.Renamed event.
Stream Provides a way to write and read bytes to and from a backing store. This class is abstract.
StreamReader Implements a TextReader that reads characters from a byte stream in a particular encoding.
StreamWriter Implements a TextWriter for writing characters to a stream.
StringReader Implements a TextReader that reads from a string.
StringWriter Writes characters to a string.
TextReader Represents a reader that can read a sequential stream of characters. This class is abstract.
TextWriter Represents a writer that can write a sequential stream of characters. This class is abstract.

Structures

Structure Description
WaitForChangedResult Waits for a change in the specified path.

Delegates

Delegate Description
FileSystemEventHandler Represents the method that will handle the System.IO.FileSystemWatcher.Created, or System.IO.FileSystemWatcher.Deleted event of a FileSystemWatcher class.
RenamedEventHandler Represents the method that will handle the System.IO.FileSystemWatcher.Renamed event of a FileSystemWatcher class.

Enumerations

Enumeration Description
ChangedFilters Specifies the changes to watch for in a file or folder.
FileAccess Allows read, write, or read/write access to a file.
FileMode Specifies how the operating system should open a file. These values, which are used by the FileStream constructors, control whether a file is overwritten or opened, or some combination thereof.
FileShare Contains constants for controlling the kind of access other FileStreams can have to the same file.
FileSystemAttributes Provides attributes for files and directories. Not all attributes are applicable to both files and directories. These constants correspond to those in WinNT.h.
SeekOrigin Provides the fields that represent seek reference points.
WatcherChangeTypes Changes that may occur to a file or directory.
WatcherTarget Specifies whether to monitor a file, directory, or both.