VsShellComponentModelHost 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 VS Shell 表示為元件模型主機的擁有者。
public ref class VsShellComponentModelHost : Microsoft::VisualStudio::ExtensibilityHosting::VsComponentModelHostBase
public class VsShellComponentModelHost : Microsoft.VisualStudio.ExtensibilityHosting.VsComponentModelHostBase
public class VsShellComponentModelHost : Microsoft.VisualStudio.ExtensibilityHosting.VsComponentModelHostBase, IDisposable
type VsShellComponentModelHost = class
inherit VsComponentModelHostBase
type VsShellComponentModelHost = class
inherit VsComponentModelHostBase
interface IDisposable
Public Class VsShellComponentModelHost
Inherits VsComponentModelHostBase
Public Class VsShellComponentModelHost
Inherits VsComponentModelHostBase
Implements IDisposable
- 繼承
-
Microsoft.VisualStudio.ExtensibilityHosting.VsComponentModelHostBaseVsShellComponentModelHost
- 實作
備註
這個類別可以從 VS 進程中的次要 appdomain,或在使用 COM 與 VS 通訊的其他進程中,以及從執行中的 VS 實例取得的 IServiceProvider 參考。
建構函式
| VsShellComponentModelHost(IServiceProvider) |
初始化 VsShellComponentModelHost 類別的新執行個體。 |
屬性
| CatalogCacheFolder |
取得儲存目錄快取的資料夾位置。 主機必須具有修改此資料夾的許可權。 |
| ComponentAssemblies |
取得此主機的所有元件模型元件清單。 |
| ServiceProvider |
傳回 DTE 建構的服務提供者 |
方法
| Dispose() |
將 VS Shell 表示為元件模型主機的擁有者。 |
| GetOnlyApprovedComponentAssemblies(IEnumerable<String>) |
允許 VS 先篩選掉元件元件,再成為任何 MEF 目錄的一部分。 |
| ReportIssue(VsComponentModelHostBaseIssueType, String, String) |
向 VS 殼層回報問題。 |
| ReportIssue(VsComponentModelHostBaseIssueType, String, String, IEnumerable<ReportingData>) |
方法可用來記錄 ExtensibilityHosting 功能中發生主機問題。 默認實作不會執行任何報告。 |