IComponentModel.GetCatalog(String) Method

Definition

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);
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.

Exceptions

Thrown when catalogName argument is null.

Thrown when catalogName argument is an empty string.

Applies to