IComponentModel.GetCatalog(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use MEF hosting APIs directly to create a catalog and build a container.
Provides access to a MEF catalog by name.
public:
System::ComponentModel::Composition::Primitives::ComposablePartCatalog ^ GetCatalog(System::String ^ catalogName);
public System.ComponentModel.Composition.Primitives.ComposablePartCatalog GetCatalog (string catalogName);
[System.Obsolete("Use MEF hosting APIs directly to create a catalog and build a container.", true)]
public System.ComponentModel.Composition.Primitives.ComposablePartCatalog GetCatalog (string catalogName);
abstract member GetCatalog : string -> System.ComponentModel.Composition.Primitives.ComposablePartCatalog
[<System.Obsolete("Use MEF hosting APIs directly to create a catalog and build a container.", true)>]
abstract member GetCatalog : string -> System.ComponentModel.Composition.Primitives.ComposablePartCatalog
Public Function GetCatalog (catalogName As String) As ComposablePartCatalog
Parameters
- catalogName
- String
Name of the catalog cannot be null or an empty string.
Returns
The requested catalog instance.
- Attributes
Exceptions
Thrown when catalogName argument is null.
Thrown when catalogName argument is an empty string.