ImageCache.IsFileOutOfDateAsync(StorageFile, TimeSpan, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Override-able method that checks whether file is valid or not.
protected override System.Threading.Tasks.Task<bool> IsFileOutOfDateAsync (Windows.Storage.StorageFile file, TimeSpan duration, bool treatNullFileAsOutOfDate = true);
override this.IsFileOutOfDateAsync : Windows.Storage.StorageFile * TimeSpan * bool -> System.Threading.Tasks.Task<bool>
Protected Overrides Function IsFileOutOfDateAsync (file As StorageFile, duration As TimeSpan, Optional treatNullFileAsOutOfDate As Boolean = true) As Task(Of Boolean)
Parameters
- file
- Windows.Storage.StorageFile
storage file
- duration
- TimeSpan
cache duration
- treatNullFileAsOutOfDate
- Boolean
option to mark uninitialized file as expired
Returns
bool indicate whether file has expired or not