Freigeben über


ExportFactory<T,TMetadata> Constructor

Definition

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

public:
 ExportFactory(Func<Tuple<T, Action ^> ^> ^ exportCreator, TMetadata metadata);
public ExportFactory (Func<Tuple<T,Action>> exportCreator, TMetadata metadata);
new System.Composition.ExportFactory<'T, 'Metadata> : Func<'T * Action> * 'Metadata -> System.Composition.ExportFactory<'T, 'Metadata>
Public Sub New (exportCreator As Func(Of Tuple(Of T, Action)), metadata As TMetadata)

Parameters

exportCreator
Func<Tuple<T,Action>>

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

metadata
TMetadata

The metadata to attach to the created parts.

Applies to