Share via


IUnifiedSettingsService.RequestCommitAsync Method

Definition

Requests that one or more changes be committed to settings values. Changes are only applied if all changes succeed and the commit is approved, either by the user or automatically by the system.

public System.Threading.Tasks.ValueTask<Microsoft.VisualStudio.RpcContracts.UnifiedSettings.CommitResult> RequestCommitAsync (Microsoft.VisualStudio.RpcContracts.UnifiedSettings.ChangeSource source, Microsoft.VisualStudio.RpcContracts.UnifiedSettings.SettingsCommit change, System.Threading.CancellationToken cancellationToken);
abstract member RequestCommitAsync : Microsoft.VisualStudio.RpcContracts.UnifiedSettings.ChangeSource * Microsoft.VisualStudio.RpcContracts.UnifiedSettings.SettingsCommit * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.VisualStudio.RpcContracts.UnifiedSettings.CommitResult>
Public Function RequestCommitAsync (source As ChangeSource, change As SettingsCommit, cancellationToken As CancellationToken) As ValueTask(Of CommitResult)

Parameters

source
ChangeSource

Identifies the source of the changes.

change
SettingsCommit

The change set to commit.

cancellationToken
CancellationToken

A cancellation token.

Returns

The result of the commit operation.

Applies to