GetFileSize Method

Gets the "real size" of a cached file.

Syntax

public long GetFileSize(string fileId);
Public Function GetFileSize(ByVal FileId As String) As Long

Remarks

This method returns the application-reported File Sizes for the cached file identified by FileId (or reports an error if no such file is present in the cache).

Note that the size value returned by this method is the one previously set by the application via the OpenFile or SetFileSize method; it does not necessarily correspond to the actual amount of data present in the cache for the file.

.NET Standard Notes

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

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