Beef Corlib
Classes | Enumerations | Variables
System.IO Namespace Reference

Classes

class  BufferedFileStream
 
class  BufferedStream
 
class  CommonDialog
 
class  Directory
 
class  DynMemStream
 
class  DynMemStreamSequential
 
class  File
 
class  FileDialog
 
struct  FileEnumerator
 
struct  FileError
 
struct  FileFindEntry
 
class  FileStream
 
class  FileStreamBase
 
class  FileSystemWatcher
 
class  FolderBrowserDialog
 
class  MemoryStream
 
class  NamedPipe
 
class  NullStream
 The NullStream will allow ignore all writes (returning success) and return 'no data' on all reads. More...
 
class  OpenFileDialog
 
class  Path
 
class  SaveFileDialog
 
struct  SecurityAttributes
 
class  Shell
 
class  Stream
 
class  StreamReader
 
class  StreamWriter
 
class  StringStream
 
class  Substream
 
class  UnbufferedFileStream
 

Enumerations

enum  FileOpenError { Unknown, NotFound, NotFile, SharingViolation }
 
enum  FileReadError { Unknown, Timeout }
 
enum  FileAccess { Read = 1, Write = 2, ReadWrite = 3 }
 
enum  FileAttributes {
  None = 0, Normal = 1, Directory = 2, SymLink = 4,
  Device = 8, ReadOnly = 0x10, Hidden = 0x20, System = 0x40,
  Temporary = 0x80, Offline = 0x100, Encrypted = 0x200, Archive = 0x400
}
 
enum  DialogResult { None = 0, OK = 1, Cancel = 2 }
 
enum  FileMode {
  FileMode.CreateNew = 1, FileMode.Create = 2, FileMode.Open = 3, FileMode.OpenOrCreate = 4,
  FileMode.Truncate = 5, FileMode.Append = 6
}
 
enum  FileOptions {
  None = 0, WriteThrough = ((int32)0x80000000), Asynchronous = ((int32)0x40000000), RandomAccess = 0x10000000,
  DeleteOnClose = 0x04000000, SequentialScan = 0x08000000, Encrypted = 0x00004000
}
 
enum  FileShare {
  FileShare.None = 0, FileShare.Read = 1, FileShare.Write = 2, FileShare.ReadWrite = 3,
  FileShare.Delete = 4, FileShare.Inheritable = 0x10
}
 
enum  NotifyFilters {
  FileName = 0x00000001, DirectoryName = 0x00000002, Attributes = 0x00000004, Size = 0x00000008,
  LastWrite = 0x00000010, LastAccess = 0x00000020, CreationTime = 0x00000040, Security = 0x00000100,
  All = FileName | DirectoryName | Attributes | Size | LastWrite | LastAccess | CreationTime | Security
}
 
enum  PipeOptions { None = 0, AllowTimeouts = 1 }
 
enum  WatcherChangeTypes {
  FileCreated = 1, DirectoryCreated = 2, Deleted = 4, Changed = 8,
  Renamed = 0x10, Failed = 0x20, All = FileCreated | DirectoryCreated | Deleted | Changed | Renamed | Failed
}
 

Variables

return. Err
 

Enumeration Type Documentation

◆ FileMode

enum System.IO.FileMode
strong
Enumerator
CreateNew 

Creates a new file. Fails if the file already exists.

Create 

Creates a new file. If the file already exists, it is overwritten.

Open 

Opens an existing file. Fails if the file does not exist.

OpenOrCreate 

Opens the file if it exists. Otherwise, creates a new file.

Truncate 

Opens an existing file.

Once opened, the file is truncated so that its size is zero bytes. The calling process must open the file with at least WRITE access. Fails if the file does not exist.

Append 

Opens the file if it exists and seeks to the end.

Otherwise, creates a new file.

◆ FileShare

enum System.IO.FileShare
strong
Enumerator
None 

No sharing.

Any request to open the file (by this process or another process) will fail until the file is closed.

Read 

Allows subsequent opening of the file for reading.

If this flag is not specified, any request to open the file for reading (by this process or another process) will fail until the file is closed.

Write 

Allows subsequent opening of the file for writing.

If this flag is not specified, any request to open the file for writing (by this process or another process) will fail until the file is closed.

ReadWrite 

Allows subsequent opening of the file for writing or reading.

If this flag is not specified, any request to open the file for writing or reading (by this process or another process) will fail until the file is closed.

Delete 

Open the file, but allow someone else to delete the file.

Inheritable 

Whether the file handle should be inheritable by child processes.

Note this is not directly supported like this by Win32.