CachedFileUpdater.SetUpdateInformation(IStorageFile, String, ReadActivationMode, WriteActivationMode, CachedFileOptions) CachedFileUpdater.SetUpdateInformation(IStorageFile, String, ReadActivationMode, WriteActivationMode, CachedFileOptions) CachedFileUpdater.SetUpdateInformation(IStorageFile, String, ReadActivationMode, WriteActivationMode, CachedFileOptions) CachedFileUpdater.SetUpdateInformation(IStorageFile, String, ReadActivationMode, WriteActivationMode, CachedFileOptions) CachedFileUpdater.SetUpdateInformation(IStorageFile, String, ReadActivationMode, WriteActivationMode, CachedFileOptions) Method

Definition

Configures update policies for a local file.

public : static void SetUpdateInformation(IStorageFile file, Platform::String contentId, ReadActivationMode readMode, WriteActivationMode writeMode, CachedFileOptions options)
static void SetUpdateInformation(IStorageFile file, winrt::hstring contentId, ReadActivationMode readMode, WriteActivationMode writeMode, CachedFileOptions options) const;
public static void SetUpdateInformation(IStorageFile file, String contentId, ReadActivationMode readMode, WriteActivationMode writeMode, CachedFileOptions options)
Public Shared Sub SetUpdateInformation(file As IStorageFile, contentId As String, readMode As ReadActivationMode, writeMode As WriteActivationMode, options As CachedFileOptions)
Windows.Storage.Provider.CachedFileUpdater.setUpdateInformation(file, contentId, readMode, writeMode, options);

Parameters

file
IStorageFile IStorageFile IStorageFile

The local file.

contentId
String String String

A unique identifier for the local file.

You can use this identifier to associate a file in your app's repository with the local file. When updates are requested by Windows, you can use this contentId to identify the correct file in your app's repository.

readMode
ReadActivationMode ReadActivationMode ReadActivationMode

A value that specifies whether Windows will request updates before the local file is retrieved from an app's MostRecentlyUsedList or FutureAccessList.

writeMode
WriteActivationMode WriteActivationMode WriteActivationMode

A value that specifies whether other apps can write to the local file and, if so, whether Windows will request updates after the local file is written.

options
CachedFileOptions CachedFileOptions CachedFileOptions

A value that specifies additional circumstances and behaviors for when Windows requests updates.

For example, you could require Windows to request an update every time the local file is accessed by using CachedFileOptions.RequireUpdateOnAccess. For more information about possible options, see CachedFileOptions.

Remarks

In order to use this method your app must participate in the Cached File Updater contract.

You can use this method to control how other apps can access a file that is provided by your app and to control when Windows requests updates for that file.