FileAccessMode Enumeration

Specifies the mode used to access a file.

Syntax

public enum class FileAccessMode  

Members

Member Value Description
Read The file stream is accessed in read-only mode. If the file is changed, subsequent read operations will fail. Multiple, independent read-only streams may be used to read a file. We recommend you keep read-only file streams open only while your app is actively reading from the file. You can close a stream by calling Close.
ReadWrite The file stream is accessed in read/write mode. The file supports a single write stream and writing is non-transacted and in-place. You should use this mode only when you are ready to write immediately in order to avoid interrupting other operations.
ReadWriteNoCopyOnWrite This value is unsupported and should not be used.
ReadWriteUnsafe This value is unsupported and should not be used.

Requirements

Namespace: Windows.Storage

Metadata: windows.winmd

See also

Reference

Windows.Storage Namespace