DatabaseSchemaViewControllerBase 类

架构视图控制器的抽象基类。

此 API 不兼容 CLS。 

继承层次结构

System.Object
  Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer.SchemaModelViewerControllerBase
    Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer.SchemaModelViewerControllerBaseInternal
      Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer.SchemaView.DatabaseSchemaViewControllerBase

命名空间:  Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer.SchemaView
程序集:  Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
Public MustInherit Class DatabaseSchemaViewControllerBase _
    Inherits SchemaModelViewerControllerBaseInternal _
    Implements IDatabaseSchemaViewController, IExtension
[CLSCompliantAttribute(false)]
public abstract class DatabaseSchemaViewControllerBase : SchemaModelViewerControllerBaseInternal, 
    IDatabaseSchemaViewController, IExtension
[CLSCompliantAttribute(false)]
public ref class DatabaseSchemaViewControllerBase abstract : public SchemaModelViewerControllerBaseInternal, 
    IDatabaseSchemaViewController, IExtension
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
type DatabaseSchemaViewControllerBase =  
    class
        inherit SchemaModelViewerControllerBaseInternal
        interface IDatabaseSchemaViewController
        interface IExtension
    end
public abstract class DatabaseSchemaViewControllerBase extends SchemaModelViewerControllerBaseInternal implements IDatabaseSchemaViewController, IExtension

DatabaseSchemaViewControllerBase 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 DatabaseSchemaViewControllerBase 初始化 DatabaseSchemaViewControllerBase 类的新实例。

页首

属性

  名称 说明
受保护的属性 EventsReceivedWhileToolWindowWasClosed 获取或设置在关闭工具窗口时处理的事件数。 (继承自 SchemaModelViewerControllerBase。)
受保护的属性 HierarchyGenerator 获取或设置架构层次结构生成器。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共属性 ProjectNode 返回关联的数据库项目节点。 (继承自 SchemaModelViewerControllerBase。)
受保护的属性 RefreshWhenToolWindowIsShown 获取或设置一个值,该值指示在下次显示工具窗口时是否进行刷新。 (继承自 SchemaModelViewerControllerBase。)
受保护的属性 RootNode 获取或设置根节点。 (继承自 SchemaModelViewerControllerBase。)
受保护的属性 SchemaView 获取或设置架构视图引用。 (继承自 SchemaModelViewerControllerBase。)
受保护的属性 ToolWindowIsShowing 获取一个值,该值指示是否显示此控制器附加到的工具窗口(架构视图或依赖关系视图)。 (继承自 SchemaModelViewerControllerBase。)
受保护的属性 ToolWindowService 获取或设置工具窗口服务。 (继承自 SchemaModelViewerControllerBase。)

页首

方法

  名称 说明
受保护的方法 CacheToolWindowService 获取并缓存 SchemaModelViewerService 服务。 (继承自 SchemaModelViewerControllerBase。)
公共方法 CanBeDisplayed 返回一个值,该值指示指定模型元素是否可以在架构视图中显示。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 CanDeleteObjects 确定是否可以删除模型元素节点的列表。 (继承自 SchemaModelViewerControllerBase。)
公共方法 CanExtend 如果此参与者可以扩展指定扩展程序名称下的 extendee,则返回 true。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 CreateGenerator 为此控制器返回架构视图生成器的抽象方法。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 CreateRootNode 在架构视图中创建根节点(数据库项目节点)。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 DeleteObjects (重写 SchemaModelViewerControllerBase.DeleteObjects(IList<ISchemaModelViewerElementNode>, IList<Tuple<String, String>>%)。)
受保护的方法 DisconnectFromDataSchemaModelEvents 从架构模型(存储)事件断开连接。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 DisconnectFromProjectEvents 从项目事件断开连接。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 DisconnectFromSchemaViewEvents 从架构视图事件断开连接。将缓存的架构视图属性设置为 null。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 DisconnectFromSolutionEvents 从解决方案事件断开连接。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 DisconnectFromToolWindowEvents 从 SchemaModelViewerService 事件断开连接,并将缓存的工具窗口属性设置为 null。 (继承自 SchemaModelViewerControllerBase。)
公共方法 Dispose() 释放资源。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 Dispose(Boolean) 释放与架构模型查看器控制器关联的资源。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetAdditionalObjectsToDelete 由 DeleteObjects 调用,以获取要删除的其他元素。 (继承自 SchemaModelViewerControllerBase。)
公共方法 GetCaption 返回指定元素节点的标题。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 GetChildren 为指定父节点返回子节点列表。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 GetExtender 返回 extendee 的扩展程序。 (继承自 SchemaModelViewerControllerBase。)
公共方法 GetExtenderNames 为 extendee 返回所有可用扩展程序的名称。 (继承自 SchemaModelViewerControllerBase。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetModelElement 返回此节点表示的模型元素或作为此节点父级的模型元素。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 GetPathsFromCache 返回包含在指定模型元素的批注中的架构视图节点的路径。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 GetPathsFromGeneratorPaths(IModelElement, IList<IList<ISchemaModelViewerNode>>%, IList<IList<ISchemaModelViewerNode>>%, IList<IList<ISchemaModelViewerNode>>%) 返回指定模型元素的架构视图节点路径。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 GetPathsFromGeneratorPaths(IModelElement, IList<IList<ISchemaModelViewerNode>>, IList<IList<ISchemaModelViewerNode>>%, IList<IList<ISchemaModelViewerNode>>%, IList<IList<ISchemaModelViewerNode>>%) 返回指定层次结构生成器节点路径的架构视图节点路径。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 GetPathsToElement 从层次结构生成器获取元素的路径。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 GetSelectionPathToElement 从层次结构生成器获取用于选择架构视图中元素的路径。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 Initialize 创建架构视图持久性支持对象。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 InitializeRootNode 向架构视图添加根节点。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 ListenToDataSchemaModelEvents 侦听数据架构模型事件。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 ListenToProjectEvents 侦听项目事件。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 ListenToSchemaViewEvents 侦听架构视图事件。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 ListenToSolutionEvents 创建解决方案侦听器并侦听解决方案事件。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 ListenToToolWindowEvents 侦听来自 SchemaModelViewerService 的事件。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 LoadState 加载状态。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 ModelChanged (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 ModelElementAdded 模型元素已添加到存储区。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 ModelElementDeleted 从存储区删除了模型元素。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 ModelElementUpdated 存储区更新了模型元素。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 NodeCreated 为要委托给层次结构节点的节点设置分类器。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 NodeInUse 提供有关架构视图是否正在使用给定节点的通知。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 OnAfterOpenProject 打开项目之后,将根节点添加到架构视图。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 OnBeforeCloseProject 在关闭项目之前调用,以提供从架构视图中移除项目(根)节点的机会。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 OnDatabaseSchemaViewInitialized 使用架构视图初始化控制器。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 OnDatabaseSchemaViewShown 处理架构视图所显示的事件。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 OnDataSchemaModelRecycled 处理 DataSchemaModel 已回收事件。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 OnDataSchemaModelRecycling 处理 DataSchemaModel 正在回收事件。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 OnProjectClosed 通过从事件断开连接处理项目的关闭。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 OnProjectClosing 调用 SaveState() 及以下的虚拟方法,调用顺序: DisconnectFromSchemaViewEvents ; DisconnectFromStoreEvents ; DisconnectFromProjectEvents ; DisconnectFromSolutionEvents ; 和 DisconnectFromToolWindowEvents。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 OnProjectLoaded 当模型完成反序列化时发生。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 OnProjectRenamed 项目节点已重命名。 (继承自 SchemaModelViewerControllerBase。)
受保护的方法 ReadStateValueAsInt 从架构视图的永久性存储中读取整数值。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 Refresh 通过移除旧节点并添加新节点来刷新架构视图。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 RemoveOurRootNode 移除根节点。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 SaveState 保存架构模型查看器控制器的状态。 (继承自 SchemaModelViewerControllerBaseInternal。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
受保护的方法 UninitializeRootNode 移除根节点。 (继承自 SchemaModelViewerControllerBaseInternal。)
受保护的方法 WriteStateValue 将值写入架构视图的永久性存储中。 (继承自 SchemaModelViewerControllerBaseInternal。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer.SchemaView 命名空间