This documentation is archived and is not being maintained.
ImportDefinition Class
Visual Studio 2010
Represents an import that is required by a ComposablePart object.
System::Object
System.ComponentModel.Composition.Primitives::ImportDefinition
System.ComponentModel.Composition.Primitives::ContractBasedImportDefinition
System.ComponentModel.Composition.Primitives::ImportDefinition
System.ComponentModel.Composition.Primitives::ContractBasedImportDefinition
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
The ImportDefinition type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | 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, cardinality, a value that indicates whether the import definition is recomposable, and a value that indicates whether the import definition is a prerequisite. |
| Name | Description | |
|---|---|---|
![]() ![]() | 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. |
| Name | Description | |
|---|---|---|
![]() ![]() | 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.) |
![]() ![]() | IsConstraintSatisfiedBy | 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. (Overrides Object::ToString().) |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:

