Edit

Share via


CacheBase<T>.IsFileOutOfDateAsync Method

Definition

Override-able method that checks whether file is valid or not.

protected virtual System.Threading.Tasks.Task<bool> IsFileOutOfDateAsync (Windows.Storage.StorageFile file, TimeSpan duration, bool treatNullFileAsOutOfDate = true);
abstract member IsFileOutOfDateAsync : Windows.Storage.StorageFile * TimeSpan * bool -> System.Threading.Tasks.Task<bool>
override this.IsFileOutOfDateAsync : Windows.Storage.StorageFile * TimeSpan * bool -> System.Threading.Tasks.Task<bool>
Protected Overridable 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