Επεξεργασία

Κοινή χρήση μέσω


ComposablePartDefinition Class

Definition

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

public ref class ComposablePartDefinition abstract
public abstract class ComposablePartDefinition
type ComposablePartDefinition = class
Public MustInherit Class ComposablePartDefinition
Inheritance
ComposablePartDefinition

Constructors

ComposablePartDefinition()

Initializes a new instance of the ComposablePartDefinition class.

Properties

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.

Methods

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)
GetHashCode()

Serves as the default hash function.

(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)

Extension Methods

Exports(ComposablePartDefinition, Type)

Returns a value that indicates whether the specified part contains an export that matches the specified contract type.

Exports<T>(ComposablePartDefinition)

Returns a value that indicates whether the specified part contains an export that matches the specified contract type.

Imports(ComposablePartDefinition, Type, ImportCardinality)

Returns a value that indicates whether the specified part contains an import that matches the specified contract type and import cardinality.

Imports(ComposablePartDefinition, Type)

Returns a value that indicates whether the specified part contains an import that matches the specified contract type.

Imports<T>(ComposablePartDefinition, ImportCardinality)

Returns a value that indicates whether the specified part contains an import that matches the specified contract type and import cardinality.

Imports<T>(ComposablePartDefinition)

Returns a value that indicates whether the specified part contains an import that matches the specified contract type.

ContainsPartMetadata<T>(ComposablePartDefinition, String, T)

Gets a value that indicates whether the specified part contains metadata that has the specified key and value.

ContainsPartMetadataWithKey(ComposablePartDefinition, String)

Gets a value that indicates whether the specified part contains metadata that has the specified key.

Exports(ComposablePartDefinition, String)

Gets a value that indicates whether the specified part exports the specified contract.

Imports(ComposablePartDefinition, String, ImportCardinality)

Determines whether the specified part imports the specified contract with the specified cardinality.

Imports(ComposablePartDefinition, String)

Determines whether the specified part imports the specified contract.

Applies to