Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Transfers one lease into this scope.

API: scripting
Project: Inno.Assets
Scope: Runtime

public TLease InnoEngine.Assets.RetentionScope.Retain<TLease>(TLease lease) where TLease : System.IDisposable

Type parameter TLease: Disposable lease type.

Parameter lease: Lease whose disposal ownership transfers to this scope.

The same lease for convenient initialization.

Exception T:System.InvalidOperationException: Retirement has begun and the scope cannot accept another lease.