ExportFactory<T>(Func<Tuple<T,Action>>) 构造函数
定义
初始化 ExportFactory<T> 类的新实例。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)))
参数
一个返回 Item1 中的导出值的函数和一个在 Item2 中释放它的 Action。A function that returns the exported value in Item1 and an Action that releases it in Item2.
例外
exportCreator 为 null。exportCreator is null.