ImportDefinition Class

Definition

Represents an import that is required by a ComposablePart object.

public ref class ImportDefinition
public class ImportDefinition
type ImportDefinition = class
Public Class ImportDefinition
Inheritance
ImportDefinition
Derived

Constructors

ImportDefinition()

Initializes a new instance of the ImportDefinition class.

ImportDefinition(Expression<Func<ExportDefinition,Boolean>>, String, ImportCardinality, Boolean, Boolean)

Initializes a new instance of the ImportDefinition class with the specified constraint, contract name, and cardinality, and indicates whether the import definition is recomposable or a prerequisite.

ImportDefinition(Expression<Func<ExportDefinition,Boolean>>, String, ImportCardinality, Boolean, Boolean, IDictionary<String,Object>)

Initializes a new instance of the ImportDefinition class with the specified constraint, contract name, cardinality, and metadata, and indicates whether the import definition is recomposable or a prerequisite.

Properties

Cardinality

Gets the cardinality of the exports required by the import definition.

Constraint

Gets an expression that defines conditions that the import must satisfy to match the import definition.

ContractName

Gets the name of the contract.

IsPrerequisite

Gets a value that indicates whether the import definition must be satisfied before a part can start producing exported objects.

IsRecomposable

Gets a value that indicates whether the import definition can be satisfied multiple times.

Metadata

Gets the metadata associated with this import.

Methods

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

Gets a value that indicates whether the export represented by the specified definition satisfies the constraints of this import definition.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string representation of the import definition.

Applies to