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.ComponentModel.Composition
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

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

Parameters

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

A function that returns the exported value and an Action that releases it.

metadata
Type: TMetadata

The metadata to attach to the created parts.

.NET Framework
Available since 4.5
Silverlight
Available since 4.0
Return to top
Show: