TypeCatalog Class
.NET Framework 4.5
Discovers attributed parts from a collection of types.
System.Object
System.ComponentModel.Composition.Primitives.ComposablePartCatalog
System.ComponentModel.Composition.Hosting.TypeCatalog
System.ComponentModel.Composition.Primitives.ComposablePartCatalog
System.ComponentModel.Composition.Hosting.TypeCatalog
Namespace: System.ComponentModel.Composition.Hosting
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
The TypeCatalog type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | TypeCatalog(IEnumerable<Type>) | Initializes a new instance of the TypeCatalog class with the specified types. |
![]() ![]() | TypeCatalog(Type[]) | Initializes a new instance of the TypeCatalog class with the specified types. |
![]() | TypeCatalog(IEnumerable<Type>, ICompositionElement) | Initializes a new instance of the TypeCatalog class with the specified types and source for parts. |
![]() | TypeCatalog(IEnumerable<Type>, ReflectionContext) | Initializes a new instance of the TypeCatalog class with the specified types in the specified reflection context. |
![]() | TypeCatalog(IEnumerable<Type>, ReflectionContext, ICompositionElement) | Initializes a new instance of the TypeCatalog class with the specified types in the specified reflection context and source for parts. |
| Name | Description | |
|---|---|---|
![]() ![]() | Parts | Gets the part definitions that are contained in the catalog. (Inherited from ComposablePartCatalog.) In .NET Framework Client Profile, this member is overridden by Parts. In Portable Class Library, this member is overridden by Parts. |
| Name | Description | |
|---|---|---|
![]() ![]() | Dispose() | Releases all resources used by the ComposablePartCatalog. (Inherited from ComposablePartCatalog.) |
![]() ![]() | Dispose(Boolean) | Releases the unmanaged resources used by the TypeCatalog and optionally releases the managed resources. (Overrides ComposablePartCatalog.Dispose(Boolean).) |
![]() ![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator that iterates through the catalog. (Overrides ComposablePartCatalog.GetEnumerator().) |
![]() ![]() | GetExports | Gets a list of export definitions that match the constraint defined by the specified ImportDefinition object. (Inherited from ComposablePartCatalog.) In .NET Framework Client Profile, this member is overridden by GetExports(ImportDefinition). In Portable Class Library, this member is overridden by GetExports(ImportDefinition). |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | ToString | Returns a string representation of the type catalog. (Overrides Object.ToString().) |
| Name | Description | |
|---|---|---|
![]() | CreateCompositionService | Creates a new composition service by using the specified catalog as a source for exports. (Defined by CatalogExtensions.) |
![]() | Filter | Filters the specified catalog with the specified filter function. (Defined by ScopingExtensions.) |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | ICompositionElement.DisplayName | Gets the display name of the type catalog. |
![]() ![]() ![]() | ICompositionElement.Origin | Gets the composition element from which the type catalog originated. |
![]() ![]() | IEnumerable.GetEnumerator | Returns an enumerator that iterates through the catalog. (Inherited from ComposablePartCatalog.) |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.


