Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImportConventionBuilder Class

.NET Framework (current version)
 

Configures an import that is associated with a part.

Namespace:   System.Composition.Convention
Assembly:  System.Composition.Convention (in System.Composition.Convention.dll)

System::Object
System.Composition.Convention::ImportConventionBuilder

public ref class ImportConventionBuilder sealed 

NameDescription
System_CAPS_pubmethodAddMetadataConstraint(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.

System_CAPS_pubmethodAddMetadataConstraint(String^, Object^)

Adds a constraint to the import requiring the specified metadata name and value.

System_CAPS_pubmethodAllowDefault()

Allows the import to receive the default value for its type if it cannot be filled.

System_CAPS_pubmethodAsContractName(Func<Type^, String^>^)

Sets the contract name of the import to the value provided by the specified function on the part type.

System_CAPS_pubmethodAsContractName(String^)

Sets the contract name of the import to the specified string.

System_CAPS_pubmethodAsMany()

Configures the import to receive a collection of exports.

System_CAPS_pubmethodAsMany(Boolean)

Configures the import to receive a collection of exports, possibly representing all available matching exports.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

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

Return to top
Show:
© 2017 Microsoft