ImportConventionBuilder Class
Configures an import that is associated with a part.
Assembly: System.Composition.Convention (in System.Composition.Convention.dll)
| Name | Description | |
|---|---|---|
![]() | AddMetadataConstraint(String^, Func<Type^, Object^>^) | Adds a constraint to the import requiring the specified metadata name and the value provided by the specified function on the part type. |
![]() | AddMetadataConstraint(String^, Object^) | Adds a constraint to the import requiring the specified metadata name and value. |
![]() | AllowDefault() | Allows the import to receive the default value for its type if it cannot be filled. |
![]() | AsContractName(Func<Type^, String^>^) | Sets the contract name of the import to the value provided by the specified function on the part type. |
![]() | AsContractName(String^) | Sets the contract name of the import to the specified string. |
![]() | AsMany() | Configures the import to receive a collection of exports. |
![]() | AsMany(Boolean) | Configures the import to receive a collection of exports, possibly representing all available matching exports. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
