CodeContainerStorageManager.RemoveAsync 方法

定义

删除所提供的的 Shell 记录 codeContainer ,并将 Remote 其与之关联的 unroams (如果有)。

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)

参数

codeContainer
CodeContainer

要移除的容器

cancellationToken
CancellationToken

取消令牌

返回

Task<Int32>

分配给此更改的修订号

实现

例外

如果为 null,则引发 codeContainer

适用于