LifetimeContext.AddBoundInstance(IDisposable) 方法

定義

將可處置部分的存留期繫結至這個存留期內容。

public:
 void AddBoundInstance(IDisposable ^ instance);
public void AddBoundInstance (IDisposable instance);
member this.AddBoundInstance : IDisposable -> unit
Public Sub AddBoundInstance (instance As IDisposable)

參數

instance
IDisposable

組件。

例外狀況

在已處置的物件上執行作業。

適用於