Freigeben über


ObservableSettingsListBase<TValue>.GetAsync Method

Definition

Retrieves the Code Container associated with key if any. Returns null otherwise.

public virtual System.Threading.Tasks.Task<ValueT> GetAsync (string key, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task<TValue> GetAsync (string key, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'ValueT (requires 'ValueT : null and 'ValueT :> IComparable<'ValueT>)>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'ValueT (requires 'ValueT : null and 'ValueT :> IComparable<'ValueT>)>
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value (requires 'Value : null and 'Value :> IComparable<'Value>)>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value (requires 'Value : null and 'Value :> IComparable<'Value>)>
Public Overridable Function GetAsync (key As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ValueT)
Public Overridable Function GetAsync (key As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TValue)

Parameters

key
String
cancellationToken
CancellationToken

Returns

Task<ValueT>
Task<TValue>

Applies to