1 out of 1 rated this helpful - Rate this topic

FileAccessMode enumeration

Specifies the mode used to access a file.

Syntax


var value = Windows.Storage.FileAccessMode.read;

Attributes

VersionAttribute(NTDDI_WIN8)

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

 

 

Build date: 2/25/2013

© 2013 Microsoft. All rights reserved.