Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CachedFileManager class

Applies to Windows and Windows Phone

Lets apps manage real-time updates to files.

Syntax


Public NotInheritable Class CachedFileManager

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The CachedFileManager class has these types of members:

Methods

The CachedFileManager class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
CompleteUpdatesAsync Initiates updates for the specified file.
DeferUpdates Lets apps defer real-time updates for a specified file.

 

Remarks

This class is static and cannot be instantiated. Call the methods directly instead.

Typically, Windows implicitly initiates updates for files that are provided by other apps when those files change.  However, you can control when updates are initiated by calling DeferUpdates. If you use this method are deferred until you call CompleteUpdatesAsync to initiate them.

Examples

The File picker sample shows you how to use a CachedFileManager to defer updates to a file until the app finishes modifying the file.

No code example is currently available or this language may not be supported.

In the example, file is a local variable that contains a StorageFile that represents the file to defer updates for.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft