CacheBase<T>.RemoveExpiredAsync(Nullable<TimeSpan>) Method
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.
Removes cached files that have expired
C#
public System.Threading.Tasks.Task RemoveExpiredAsync (TimeSpan? duration = default);
member this.RemoveExpiredAsync : Nullable<TimeSpan> -> System.Threading.Tasks.Task
Public Function RemoveExpiredAsync (Optional duration As Nullable(Of TimeSpan) = Nothing) As Task
Optional timespan to compute whether file has expired or not. If no value is supplied, CacheDuration is used.
awaitable task
Producto | Versiones |
---|---|
Windows Community Toolkit | 6.1.1, 7.0.0, 7.1.0 |