Delen via


IExternalSettingsProvider.SetValueAsync<T> Method

Definition

Sets the value of a registered setting in this external region. If the external settings region has realtimeNotifications = false and this objects implements ICachingExternalSettingsProvider, this can update an in-memory cache without affecting the backing store (until CommitPendingChangesAsync(CancellationToken) is called). Otherwise, this method should update the backing store immediately.

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

Type Parameters

T

The setting type, which is determined from registration.

Parameters

moniker
String

The setting moniker

value
T

The new value for the setting

cancellationToken
CancellationToken

Returns

Applies to