VsCatalogProvider Class
Provides access to named MEF catalogs. The catalogs are referred by name that usually follows the namespace naming convention, for example "Microsoft.VisualStudio.TextEditor". The catalogs are automatically cached. In the case of any error related to cache files management the class falls back to no-cache mode.
The class is thread safe.
Assembly: Microsoft.VisualStudio.ExtensibilityHosting (in Microsoft.VisualStudio.ExtensibilityHosting.dll)
| Name | Description | |
|---|---|---|
![]() | VsCatalogProvider(VsComponentModelHostBase^) | Constructor. Usually there will be only one instance of this class created for an appdomain. |
| Name | Description | |
|---|---|---|
![]() | IsCacheDirty | The property is true if there is at least one catalog with not-up-to-date cache. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | GetCachedCatalog(String^, Boolean) | Gets the cached MEF catalog by its name. The catalog is built and cached in a separate appdomain then loads in the cached catalog in the current appdomain. |
![]() | GetCatalog(String^) | Provides access to a MEF catalog by its name. If no contributors found for a requested catalog an empty one is returned. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetScopedCachedCatalog(ComposablePartCatalog^) | Gets the cached scoped catalog for the catalog as defined by the ICompositionScopeCreator returned by the VsComponentModelHost. |
![]() | GetType() | (Inherited from Object.) |
![]() | IsolatedUpdateCache(List<Tuple<VsComponentModelHostBaseIssueType, String^, String^>^>^) | |
![]() | ToString() | (Inherited from Object.) |
![]() | TryGetCatalog(String^, ComposablePartCatalog^) | Attempts to retrieve catalog of given name from catalogs currently loaded by the catalog provider. |
![]() | UpdateCache() | Persists caches to disk for the catalog which caches are not up-to-date (or have never been cached). |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

