CodeContainerStorageManager 类

定义

负责管理 Shell 所访问代码容器的记录的主要类型。 它主要负责 (Shell 访问的代码容器) 簿记, (b) 漫游与 web 上的此类代码容器相关的信息

public ref class CodeContainerStorageManager : Microsoft::VisualStudio::Shell::CodeContainerManagement::ICodeContainerStorageManager
[Windows::Foundation::Metadata::WebHostHidden]
class CodeContainerStorageManager : Microsoft::VisualStudio::Shell::CodeContainerManagement::ICodeContainerStorageManager
public class CodeContainerStorageManager : Microsoft.VisualStudio.Shell.CodeContainerManagement.ICodeContainerStorageManager
type CodeContainerStorageManager = class
    interface ICodeContainerStorageManager
Public Class CodeContainerStorageManager
Implements ICodeContainerStorageManager
继承
CodeContainerStorageManager
实现

构造函数

CodeContainerStorageManager(ObservableSettingsListBase<CodeContainer>, ObservableSettingsListBase<RemoteCodeContainer>)

初始化 CodeContainerStorageManager 的新实例。

方法

AddOrUpdateAsync(CodeContainer, CancellationToken)

为提供的添加或更新 Shell 记录 codeContainer 。 还将漫游关联的( Remote 如果有)。

ClearAsync(CancellationToken)
GetAsync(String, CancellationToken)

检索 CodeContainer 其 Full-Path 等于的, fullPath 如果之前已由 Shell 打开了它,则为。 否则,返回 null。

RemoveAsync(CodeContainer, CancellationToken)

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

SubscribeAsync(ITargetBlock<StatefulReadOnlyList<CodeContainer,Nullable<Int32>>>, CancellationToken)

允许 targetBlock 接收有关 Shell 访问的代码容器的更新。

适用于