Edit

Share via


ImageCache.IsFileOutOfDateAsync(StorageFile, TimeSpan, Boolean) Method

Definition

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

Applies to