FileUpdateRequest.UpdateLocalFile | updateLocalFile method

Applies to Windows and Windows Phone

Provide a new version of the local file to represent the remote file.

Syntax


fileUpdateRequest.updateLocalFile(value);

Parameters

value

Type: IStorageFile

The new version of the local file that will represent remote file.

This file can be different from the original local file that was associated with the FileUpdateRequest.ContentId.

Remarks

If your app participates in the Cached File Updater contract, use this method to associate a new version of the local file with the existing ContentId. You need to use this method whenever you create a new version of the local file. For example, you would call this method if you used ReplaceWithStreamedFileAsync or ReplaceWithStreamedFileFromUriAsync to download the latest version of the file, or if the remote version of the file was renamed.

Requirements

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

See also

FileUpdateRequest

 

 

Show:
© 2014 Microsoft