VsShellComponentModelHost 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 VS Shell 表示为组件模型宿主的所有者。
public ref class VsShellComponentModelHost : Microsoft::VisualStudio::ExtensibilityHosting::VsComponentModelHostBase
public class VsShellComponentModelHost : Microsoft.VisualStudio.ExtensibilityHosting.VsComponentModelHostBase
type VsShellComponentModelHost = class
inherit VsComponentModelHostBase
Public Class VsShellComponentModelHost
Inherits VsComponentModelHostBase
- 继承
-
Microsoft.VisualStudio.ExtensibilityHosting.VsComponentModelHostBaseVsShellComponentModelHost
注解
此类可用于 VS 进程中的辅助 appdomain 或与使用 COM 通信的其他进程中,以及 IServiceProvider 从运行的 vs 实例获取的引用。
构造函数
| VsShellComponentModelHost(IServiceProvider) |
初始化 VsShellComponentModelHost 类的新实例。 |
属性
| CatalogCacheFolder |
获取存储目录缓存的文件夹的位置。 主机必须具有修改此文件夹的权限。 |
| ComponentAssemblies |
获取此主机上的所有组件模型程序集的列表。 |
方法
| GetOnlyApprovedComponentAssemblies(IEnumerable<String>) |
允许 VS 筛选掉组件程序集,然后再将其作为任何 MEF 目录的组成部分。 |
| ReportIssue(VsComponentModelHostBaseIssueType, String, String) |
向 VS shell 报告问题。 |
| ReportIssue(VsComponentModelHostBaseIssueType, String, String, IEnumerable<ReportingData>) |
方法用于在 ExtensibilityHosting 功能中记录主机问题。 默认实现不执行任何报表。 |