IComponentModel::GetCatalog Method (String^)

 

Provides access to a MEF catalog by name.

Namespace:   Microsoft.VisualStudio.ComponentModelHost
Assembly:  Microsoft.VisualStudio.ComponentModelHost (in Microsoft.VisualStudio.ComponentModelHost.dll)

ComposablePartCatalog^ GetCatalog(
	String^ catalogName
)

Parameters

catalogName
Type: System::String^

The name of the catalog cannot be null or an empty string.

Return Value

Type: System.ComponentModel.Composition.Primitives::ComposablePartCatalog^

The requested catalog instance.

Exception Condition
ArgumentNullException

Thrown when catalogName argument is an empty string.

ArgumentException

Thrown when catalogName argument is an empty string.

Return to top
Show: