CodeContainerStorageManager.RemoveAsync 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.
Removes the records of the Shell for the supplied codeContainer
and unroams
the Remote associated with it if any.
public System.Threading.Tasks.Task<int> RemoveAsync (Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer codeContainer, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveAsync : Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.RemoveAsync : Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Function RemoveAsync (codeContainer As CodeContainer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Integer)
Parameters
- codeContainer
- CodeContainer
The container to remove
- cancellationToken
- CancellationToken
Cancellation token
Returns
The revision number assigned to this change
Implements
Exceptions
Thrown if codeContainer
is null.