Share via


ExportLifetimeContext<T>(T, Action) 构造函数

定义

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

public:
 ExportLifetimeContext(T value, Action ^ disposeAction);
public ExportLifetimeContext (T value, Action disposeAction);
new System.ComponentModel.Composition.ExportLifetimeContext<'T> : 'T * Action -> System.ComponentModel.Composition.ExportLifetimeContext<'T>
Public Sub New (value As T, disposeAction As Action)

参数

value
T

导出的值。

disposeAction
Action

对用于释放对象的方法的引用。

适用于