ComposablePartDefinition Class

Defines an abstract base class for composable part definitions, which describe and enable the creation of ComposablePart objects.

System.Object
  System.ComponentModel.Composition.Primitives.ComposablePartDefinition

Namespace:  System.ComponentModel.Composition.Primitives
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public abstract class ComposablePartDefinition

The ComposablePartDefinition type exposes the following members.

  NameDescription
Protected methodSupported by Portable Class LibraryComposablePartDefinitionInitializes a new instance of the ComposablePartDefinition class.
Top

  NameDescription
Public propertySupported by Portable Class LibraryExportDefinitionsGets a collection of ExportDefinition objects that describe the objects exported by the part defined by this ComposablePartDefinition object.
Public propertySupported by Portable Class LibraryImportDefinitionsGets a collection of ImportDefinition objects that describe the imports required by the part defined by this ComposablePartDefinition object.
Public propertySupported by Portable Class LibraryMetadataGets a collection of the metadata for this ComposablePartDefinition object.
Top

  NameDescription
Public methodSupported by Portable Class LibraryCreatePartCreates a new instance of a part that the ComposablePartDefinition describes.
Public methodSupported by Portable Class LibraryEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Portable Class LibraryToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodContainsPartMetadata<T>Gets a value that indicates whether the specified part contains metadata that has the specified key and value. (Defined by ScopingExtensions.)
Public Extension MethodContainsPartMetadataWithKeyGets a value that indicates whether the specified part contains metadata that has the specified key. (Defined by ScopingExtensions.)
Public Extension MethodExports(String)Overloaded. Gets a value that indicates whether the specified part exports the specified contract. (Defined by ScopingExtensions.)
Public Extension MethodExports(Type)Overloaded. Returns a value that indicates whether the specified part contains an export that matches the specified contract type. (Defined by AttributedModelServices.)
Public Extension MethodExports<T>()Overloaded. Returns a value that indicates whether the specified part contains an export that matches the specified contract type. (Defined by AttributedModelServices.)
Public Extension MethodImports(String)Overloaded. Determines whether the specified part imports the specified contract. (Defined by ScopingExtensions.)
Public Extension MethodImports(Type)Overloaded. Returns a value that indicates whether the specified part contains an import that matches the specified contract type. (Defined by AttributedModelServices.)
Public Extension MethodImports(String, ImportCardinality)Overloaded. Determines whether the specified part imports the specified contract with the specified cardinality. (Defined by ScopingExtensions.)
Public Extension MethodImports(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.)
Public Extension MethodImports<T>()Overloaded. Returns a value that indicates whether the specified part contains an import that matches the specified contract type. (Defined by AttributedModelServices.)
Public Extension MethodImports<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.)
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Windows 8.1, Windows Server 2012 R2, 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft