SubordinateDocumentLockHolder 类

管理在运行中的文档表从属文件上的编辑锁。

此 API 不兼容 CLS。 

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.Shell.SubordinateDocumentLockHolder

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
Public NotInheritable Class SubordinateDocumentLockHolder _
    Implements IVsDocumentLockHolder, IDisposable
[CLSCompliantAttribute(false)]
public sealed class SubordinateDocumentLockHolder : IVsDocumentLockHolder, 
    IDisposable

SubordinateDocumentLockHolder 类型公开以下成员。

构造函数

  名称 说明
公共方法 SubordinateDocumentLockHolder 创建新的 SubordinateDocumentLockHolder。

页首

属性

  名称 说明
公共属性 SubordinateDocData 检索由此锁持有者管理的从属 DocData。

页首

方法

  名称 说明
公共方法 CloseDocumentHolder 释放从属文档上的锁并取消注册锁固定器。
公共方法 Dispose 释放由 SubordinateDocumentLockHolder 类的当前实例占用的所有资源。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 终结器 (重写 Object.Finalize()。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 ShowDocumentHolder 显示与父文档相关的第一个视图。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 UnregisterSubordinateDocument 注销该下级文件并从记忆中移除。此方法不保存文档。

页首

线程安全

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

请参阅

参考

Microsoft.VisualStudio.Modeling.Shell 命名空间