SetFileSize Method
Sets the "real size" of a cached file.
Syntax
Remarks
This method changes the "real size" of the cached file identified by FileId to the number of bytes specified by NewSize. The cached file must be opened using OpenFile before its real size can be changed.
The FetchMissingData parameter controls how the cache initializes new file space in cases where the file's real size is increased. If FetchMissingData is true, the new file space is filled with real data fetched from external storage. Otherwise, the new file space is marked as zero-filled (though no actual data writing occurs).
.NET Standard Notes
To call this method in an asynchronous manner call SetFileSizeAsync instead. When the method completes (or an error is encountered) the SetFileSizeCompleted event will fire.