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.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.ExtensibilityHosting.VsCatalogProvider
Namespace: Microsoft.VisualStudio.ExtensibilityHosting
Assembly: Microsoft.VisualStudio.ExtensibilityHosting (in Microsoft.VisualStudio.ExtensibilityHosting.dll)
Syntax
'Declaration
Public NotInheritable Class VsCatalogProvider
public sealed class VsCatalogProvider
public ref class VsCatalogProvider sealed
[<Sealed>]
type VsCatalogProvider = class end
public final class VsCatalogProvider
The VsCatalogProvider type exposes the following members.
Constructors
Name | Description | |
---|---|---|
VsCatalogProvider | Constructor. Usually there will be only one instance of this class created for an appdomain. |
Top
Properties
Name | Description | |
---|---|---|
IsCacheDirty | The property is true if there is at least one catalog with not-up-to-date cache. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetCachedCatalog | 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 | Provides access to a MEF catalog by its name. If no contributors found for a requested catalog an empty one is returned. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetScopedCachedCatalog | Gets the cached scoped catalog for the catalog as defined by the ICompositionScopeCreator returned by the VsComponentModelHost. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsolatedUpdateCache | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetCatalog | 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). |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.