IUnifiedSettingsService.RequestCommitAsync Method
Definition
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.
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.