Partager via


ImportConventionBuilder Class

Definition

Configures an import that is associated with a part.

public ref class ImportConventionBuilder sealed
public sealed class ImportConventionBuilder
type ImportConventionBuilder = class
Public NotInheritable Class ImportConventionBuilder
Inheritance
ImportConventionBuilder

Methods

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 the contract cannot be supplied by another part.

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)

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)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to