ExportFactory<T>(Func<Tuple<T,Action>>) 构造函数

定义

初始化 ExportFactory<T> 类的新实例。

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

参数

exportLifetimeContextCreator
Func<Tuple<T,Action>>

一个返回导出值的函数和一个释放它的 Action

适用于