ExportLifetimeContext<T>(T, Action) ExportLifetimeContext<T>(T, Action) ExportLifetimeContext<T>(T, Action) ExportLifetimeContext<T>(T, Action) Constructor

定義

初始化 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 T T T

匯出值。The exported value.

disposeAction
Action Action Action Action

釋放物件的方法參考。A reference to a method to release the object.

適用於