Share via


ObservableSettingsListBase<TValue>.AddOrUpdateAsync Method

Definition

Adds or updates value to the Registry under the supplied key.

public virtual System.Threading.Tasks.Task AddOrUpdateAsync (string key, ValueT value, object state = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddOrUpdateAsync : string * 'ValueT * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.AddOrUpdateAsync : string * 'ValueT * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function AddOrUpdateAsync (key As String, value As ValueT, Optional state As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

key
String
value
ValueT
state
Object
cancellationToken
CancellationToken

Returns

Applies to