Delen via


CachedFileManager.CompleteUpdatesAsync(IStorageFile) Method

Definition

Initiates updates for the specified file. This method contacts the app that provided the file to perform the updates.

public:
 static IAsyncOperation<FileUpdateStatus> ^ CompleteUpdatesAsync(IStorageFile ^ file);
 static IAsyncOperation<FileUpdateStatus> CompleteUpdatesAsync(IStorageFile const& file);
public static IAsyncOperation<FileUpdateStatus> CompleteUpdatesAsync(IStorageFile file);
function completeUpdatesAsync(file)
Public Shared Function CompleteUpdatesAsync (file As IStorageFile) As IAsyncOperation(Of FileUpdateStatus)

Parameters

file
IStorageFile

The file to update.

Returns

When this method completes, it returns a FileUpdateStatus enum value that describes the status of the updates to the file.

Remarks

Using this method ensures that the updates to the file are completed which may require Windows to ask for user input.  For example, the app that provided the file may be activated to perform updates and that app may display UI through a file picker.

Applies to