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

.NET Framework (current version)
 

Specifies the contract name for the export based on the result of the specified function on the export type.

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

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

Parameters

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

The function that provides the contract name.

Return Value

Type: System.Composition.Convention::ExportConventionBuilder^

An export builder that provides further configuration.

Return to top
Show: