ImportConventionBuilder::AsContractName Method (Func<Type^, String^>^)

.NET Framework (current version)
 

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

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

public:
ImportConventionBuilder^ AsContractName(
	Func<Type^, String^>^ getContractNameFromPartType
)

Parameters

getContractNameFromPartType
Type: System::Func<Type^, String^>^

A function that provides the contract name of the import.

Return Value

Type: System.Composition.Convention::ImportConventionBuilder^

An import builder that provides further configuration.

Return to top
Show: