ChangeFileId Method

Changes the Id of a cached file.

Syntax

public void ChangeFileId(string fileId, string newFileId);
Public Sub ChangeFileId(ByVal FileId As String, ByVal NewFileId As String)

Remarks

This method changes the Id of the cached file identified by FileId to NewFileId. Applications that use file paths as Ids may need to use this method if a path element is renamed.

This method fails with an error if no file with the specified FileId is present in the cache, or if there is already another file present in the cache with NewFileId.

.NET Standard Notes

To call this method in an asynchronous manner call ChangeFileIdAsync instead. When the method completes (or an error is encountered) the ChangeFileIdCompleted event will fire.

 
 
Copyright (c) 2020 Callback Technologies, Inc. - All rights reserved.
CBFS Cache 2020 .NET Edition - Version 20.0 [Build 7647]