Share via


IComponentModel.GetCatalog(String) Method

Definition

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.

Applies to