CachedFileManager.CompleteUpdatesAsync(IStorageFile) 方法

定義

起始指定檔案的更新。 此方法會連絡提供檔案以執行更新的應用程式。

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)

參數

file
IStorageFile

要更新的檔案。

傳回

此方法完成時,它會傳回 FileUpdateStatus 列舉值,描述檔案更新的狀態。

備註

使用此方法可確保檔案的更新已完成,這可能需要 Windows 要求使用者輸入。  例如,提供檔案的應用程式可能會啟動以執行更新,而且該應用程式可能會透過檔案選擇器顯示 UI。

適用於