ExportFactory<T, TMetadata> Constructor (Func<Tuple<T, Action^>^>^, TMetadata)

.NET Framework (current version)
 

Initializes a new instance of the ExportFactory<T, TMetadata> class.

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

public:
ExportFactory(
	Func<Tuple<T, Action^>^>^ exportCreator,
	TMetadata metadata
)

Parameters

exportCreator
Type: System::Func<Tuple<T, Action^>^>^

A function that returns the exported value in Tuple<T1, T2>::Item1 and an Action that releases it in Tuple<T1, T2>::Item2.

metadata
Type: TMetadata

The metadata to attach to the created parts.

Return to top
Show: