ObservableSettingsListBase<TValue>.GetAsync 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.
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)
- key
- String
- cancellationToken
- CancellationToken
Task<ValueT>
Task<TValue>