VsCatalogProvider.GetCatalog Method
Provides access to a MEF catalog by its name. If no contributors found for a requested catalog an empty one is returned.
Namespace: Microsoft.VisualStudio.ExtensibilityHosting
Assembly: Microsoft.VisualStudio.ExtensibilityHosting (in Microsoft.VisualStudio.ExtensibilityHosting.dll)
Syntax
'Declaration
Public Function GetCatalog ( _
catalogName As String _
) As ComposablePartCatalog
public ComposablePartCatalog GetCatalog(
string catalogName
)
public:
ComposablePartCatalog^ GetCatalog(
String^ catalogName
)
member GetCatalog :
catalogName:string -> ComposablePartCatalog
public function GetCatalog(
catalogName : String
) : ComposablePartCatalog
Parameters
catalogName
Type: StringName of the catalog cannot be null or an empty string.
Return Value
Type: ComposablePartCatalog
The requested catalog instance.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when catalogName argument is null. |
ArgumentException | Thrown when catalogName argument 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.