Synced
RetentionScope.Retain
Section titled “RetentionScope.Retain”
- Transfers one lease into this scope.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Assets
Scope: Runtime
Declaration
Section titled “Declaration”public TLease InnoEngine.Assets.RetentionScope.Retain<TLease>(TLease lease) where TLease : System.IDisposableType parameters
Section titled “Type parameters”Type parameter TLease: Disposable lease type.
Parameters
Section titled “Parameters”Parameter lease: Lease whose disposal ownership transfers to this scope.
Returns
Section titled “Returns”The same lease for convenient initialization.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Retirement has begun and the scope cannot accept another lease.