ImportDefinition ImportDefinition ImportDefinition 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
ImportDefinitionImportDefinitionImportDefinitionImportDefinition
Derived

Constructors

ImportDefinition() ImportDefinition() ImportDefinition() ImportDefinition()

Initializes a new instance of the ImportDefinition class.

ImportDefinition(Expression<Func<ExportDefinition,Boolean>>, String, ImportCardinality, Boolean, Boolean) ImportDefinition(Expression<Func<ExportDefinition,Boolean>>, String, ImportCardinality, Boolean, Boolean) ImportDefinition(Expression<Func<ExportDefinition,Boolean>>, String, ImportCardinality, Boolean, Boolean) 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>) ImportDefinition(Expression<Func<ExportDefinition,Boolean>>, String, ImportCardinality, Boolean, Boolean, IDictionary<String,Object>) ImportDefinition(Expression<Func<ExportDefinition,Boolean>>, String, ImportCardinality, Boolean, Boolean, IDictionary<String,Object>) 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 Cardinality Cardinality Cardinality

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

Constraint Constraint Constraint Constraint

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

ContractName ContractName ContractName ContractName

Gets the name of the contract.

IsPrerequisite IsPrerequisite IsPrerequisite IsPrerequisite

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

IsRecomposable IsRecomposable IsRecomposable IsRecomposable

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

Metadata Metadata Metadata Metadata

Gets the metadata associated with this import.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsConstraintSatisfiedBy(ExportDefinition) IsConstraintSatisfiedBy(ExportDefinition) IsConstraintSatisfiedBy(ExportDefinition) IsConstraintSatisfiedBy(ExportDefinition)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string representation of the import definition.

Applies to