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

.NET Framework (current version)
 

Adds metadata that has the specified name and value to the export.

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

public:
ExportConventionBuilder^ AddMetadata(
	String^ name,
	Func<Type^, Object^>^ getValueFromPartType
)

Parameters

name
Type: System::String^

The name of the metadata to add.

getValueFromPartType
Type: System::Func<Type^, Object^>^

A function that provides the value of the metadata to add.

Return Value

Type: System.Composition.Convention::ExportConventionBuilder^

An export builder that provides further configuration.

Return to top
Show: