System.IO.FileOptions Enumeration

Represents advanced options for creating a System.IO.FileStream object.

Syntax

[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum FileOptions

Remarks

Documentation for this section has not yet been entered.

Members

Member NameDescription
Asynchronous

Indicates that a file can be used for asynchronous reading and writing.

DeleteOnClose

Indicates that a file is automatically deleted when it is no longer in use.

Encrypted

Indicates that a file is encrypted and can be decrypted only by using the same user account used for encryption.

None

Indicates that no additional options should be used when creating a System.IO.FileStream object.

RandomAccess

Indicates that the file is accessed randomly. The system can use this as a hint to optimize file caching.

SequentialScan

Indicates that the file is to be accessed sequentially from beginning to end. The system can use this as a hint to optimize file caching. If an application moves the file pointer for random access, optimum caching may not occur; however, correct operation is still guaranteed.

WriteThrough

Indicates that the system should write through any intermediate cache and go directly to disk.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0