Export (0) Print
Expand All

ExportBuilder.AddMetadata Method (String, Func<Type, Object>)

.NET Framework 4.5

Specifies a metadata key/value pair to be added to the export.

Namespace:  System.ComponentModel.Composition.Registration
Assembly:  System.ComponentModel.Composition.Registration (in System.ComponentModel.Composition.Registration.dll)

public ExportBuilder AddMetadata(
	string name,
	Func<Type, Object> itemFunc
)

Parameters

name
Type: System.String

The metadata key.

itemFunc
Type: System.Func<Type, Object>

A function that takes a type and returns the metadata value.

Return Value

Type: System.ComponentModel.Composition.Registration.ExportBuilder
The current object, to allow chaining.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft