ExportLifetimeContext<T>(T, Action) 构造函数
定义
初始化 ExportLifetimeContext<T> 类的新实例。Initializes a new instance of the ExportLifetimeContext<T> class.
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
导出的值。The exported value.
- disposeAction
- Action
对用于释放对象的方法的引用。A reference to a method to release the object.