LifetimeContext.AddBoundInstance(IDisposable) Metod

Definition

Binder livslängden för en engångsdel till den här livstidskontexten.

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

Parametrar

instance
IDisposable

Delen.

Undantag

Åtgärden utfördes på ett borttaget objekt.

Gäller för