Delen via


IExternalSettingsProvider.GetValueAsync<T> Method

Definition

Gets the current value of a registered setting in this external region.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Utilities.UnifiedSettings.ExternalSettingOperationResult<T>> GetValueAsync<T> (string moniker, System.Threading.CancellationToken cancellationToken);
abstract member GetValueAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Utilities.UnifiedSettings.ExternalSettingOperationResult<'T>>
Public Function GetValueAsync(Of T) (moniker As String, cancellationToken As CancellationToken) As Task(Of ExternalSettingOperationResult(Of T))

Type Parameters

T

The setting type, which is determined from registration.

Parameters

moniker
String

The setting moniker

cancellationToken
CancellationToken

Returns

The current value of the setting. If the external settings region has realtimeNotifications = false and this objects implements ICachingExternalSettingsProvider, this can be a value from memory that doesn't necessarily match the backing store (if the backing store has recently been updated). Otherwise, this method should read the value directly from the backing store.

Applies to