FileAccessMode enumeration

Applies to Windows and Windows Phone

Specifies the mode used to access a file.

Syntax


public enum class FileAccessMode

Attributes

[Version(0x06020000)]

Members

The FileAccessMode enumeration has these members.

MemberValueDescription
Read | read0

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 | readWrite1

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft