Partager via


CodeContainerStorageManager.AddOrUpdateAsync Method

Definition

Adds or updates the records of the Shell for the supplied codeContainer. Also roams the associated Remote if any.

public System.Threading.Tasks.Task<int> AddOrUpdateAsync (Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer codeContainer, System.Threading.CancellationToken cancellationToken = default);
abstract member AddOrUpdateAsync : Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.AddOrUpdateAsync : Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Function AddOrUpdateAsync (codeContainer As CodeContainer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Integer)

Parameters

codeContainer
CodeContainer

The container to be added or updated

cancellationToken
CancellationToken

Cancellation token

Returns

The revision number assigned to this change

Implements

Exceptions

Thrown if codeContainer is null.

Applies to