VsShellComponentModelHost Class

Definition

Represent VS Shell as the owner of the component model host.

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
Inheritance
Microsoft.VisualStudio.ExtensibilityHosting.VsComponentModelHostBase
VsShellComponentModelHost

Remarks

This class can be used from secondary appdomains in VS process or in other processes that communicate with VS using COM and a reference to IServiceProvider obtained from a running VS instance.

Constructors

Name Description
VsShellComponentModelHost(IServiceProvider)

Initializes a new instance of the VsShellComponentModelHost class.

Properties

Name Description
CatalogCacheFolder

Gets the location of the folder where catalog caches are stored. The host must have rights to modify this folder.

ComponentAssemblies

Gets the list of all component model assemblies located for this host.

Methods

Name Description
GetOnlyApprovedComponentAssemblies(IEnumerable<String>)

Allows VS to filter out component assemblies before they are made a part of any MEF catalog.

ReportIssue(VsComponentModelHostBaseIssueType, String, String, IEnumerable<ReportingData>)

The method is used to log with the host issues occured in ExtensibilityHosting functionality. The default implementation doesn't do any reporting.

ReportIssue(VsComponentModelHostBaseIssueType, String, String)

Reports the issue to VS shell.

Applies to