Windows Dev Center

CachedFileOptions enumeration

Describes when Windows will request an update to a file.

Syntax


public enum CachedFileOptions

Members

The CachedFileOptions enumeration has these members.

MemberValueDescription
None | none0

Another app may be able to access the locally cached copy of the file without triggering an update.

RequireUpdateOnAccess | requireUpdateOnAccess1

An update always triggers when another app accesses the locally cached copy of the file.

UseCachedFileWhenOffline | useCachedFileWhenOffline2

An update triggers when another app accesses the locally cached copy of the file if a network connection is available.  Otherwise, other apps can access the local file without triggering an update.

DenyAccessWhenOffline | denyAccessWhenOffline4

An update triggers when another app accesses the locally cached copy of the file if a network connection is available.  Otherwise, other apps are denied access to the local file.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

Attributes

[Flags()]
[Version(0x06020000)]

 

 

Show:
© 2015 Microsoft