ObservableSettingsListBase<TValue>.PurgeIfNecessaryAsync 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 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)
- state
- Object
- cancellationToken
- CancellationToken