Udostępnij za pośrednictwem


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

Definition

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

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

Parameters

exportCreator
Func<Tuple<T,Action>>

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

Exceptions

exportCreator is null.

Applies to