ComposablePartDefinition Class
.NET Framework 4.5
Defines an abstract base class for composable part definitions, which describe and enable the creation of ComposablePart objects.
Namespace:
System.ComponentModel.Composition.Primitives
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
The ComposablePartDefinition type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | ComposablePartDefinition | Initializes a new instance of the ComposablePartDefinition class. |
| Name | Description | |
|---|---|---|
![]() ![]() | ExportDefinitions | Gets a collection of ExportDefinition objects that describe the objects exported by the part defined by this ComposablePartDefinition object. |
![]() ![]() | ImportDefinitions | Gets a collection of ImportDefinition objects that describe the imports required by the part defined by this ComposablePartDefinition object. |
![]() ![]() | Metadata | Gets a collection of the metadata for this ComposablePartDefinition object. |
| Name | Description | |
|---|---|---|
![]() ![]() | CreatePart | Creates a new instance of a part that the ComposablePartDefinition describes. |
![]() ![]() | 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.) |
![]() ![]() | 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 that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | ContainsPartMetadata<T> | Gets a value that indicates whether the specified part contains metadata that has the specified key and value. (Defined by ScopingExtensions.) |
![]() | ContainsPartMetadataWithKey | Gets a value that indicates whether the specified part contains metadata that has the specified key. (Defined by ScopingExtensions.) |
![]() | Exports(String) | Overloaded. Gets a value that indicates whether the specified part exports the specified contract. (Defined by ScopingExtensions.) |
![]() | Exports(Type) | Overloaded. Returns a value that indicates whether the specified part contains an export that matches the specified contract type. (Defined by AttributedModelServices.) |
![]() | Exports<T>() | Overloaded. Returns a value that indicates whether the specified part contains an export that matches the specified contract type. (Defined by AttributedModelServices.) |
![]() | Imports(String) | Overloaded. Determines whether the specified part imports the specified contract. (Defined by ScopingExtensions.) |
![]() | Imports(Type) | Overloaded. Returns a value that indicates whether the specified part contains an import that matches the specified contract type. (Defined by AttributedModelServices.) |
![]() | Imports(String, ImportCardinality) | Overloaded. Determines whether the specified part imports the specified contract with the specified cardinality. (Defined by ScopingExtensions.) |
![]() | Imports(Type, ImportCardinality) | Overloaded. Returns a value that indicates whether the specified part contains an import that matches the specified contract type and import cardinality. (Defined by AttributedModelServices.) |
![]() | Imports<T>() | Overloaded. Returns a value that indicates whether the specified part contains an import that matches the specified contract type. (Defined by AttributedModelServices.) |
![]() | Imports<T>(ImportCardinality) | Overloaded. Returns a value that indicates whether the specified part contains an import that matches the specified contract type and import cardinality. (Defined by AttributedModelServices.) |
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.

