IComponentModel.GetCatalog Method
Provides access to a MEF catalog by name.
Namespace: Microsoft.VisualStudio.ComponentModelHost
Assembly: Microsoft.VisualStudio.ComponentModelHost (in Microsoft.VisualStudio.ComponentModelHost.dll)
Syntax
'Declaration
Function GetCatalog ( _
catalogName As String _
) As ComposablePartCatalog
ComposablePartCatalog GetCatalog(
string catalogName
)
ComposablePartCatalog^ GetCatalog(
String^ catalogName
)
abstract GetCatalog :
catalogName:string -> ComposablePartCatalog
function GetCatalog(
catalogName : String
) : ComposablePartCatalog
Parameters
- catalogName
Type: System.String
The name of the catalog. It cannot be null or an empty string.
Return Value
Type: System.ComponentModel.Composition.Primitives.ComposablePartCatalog
A ComposablePartCatalog.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | catalogName is null. |
ArgumentException | catalogName is an empty string. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.