Share via


ObservableSettingsListBase<TValue>.PurgeIfNecessaryAsync Method

Definition

Removes a fixed number of the least-accessed values to keep the underlying ISettingsList from growing indefinitely.

protected virtual System.Threading.Tasks.Task<bool> PurgeIfNecessaryAsync (object state, System.Threading.CancellationToken cancellationToken = default);
abstract member PurgeIfNecessaryAsync : obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.PurgeIfNecessaryAsync : obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected Overridable Function PurgeIfNecessaryAsync (state As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

state
Object
cancellationToken
CancellationToken

Returns

Applies to