Defines a type of object that is issued by the lease grantor and returned to the lease holder.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public interface ILease : IDisposable
Public Interface ILease _ Implements IDisposable
public interface class ILease : IDisposable
public interface ILease extends IDisposable
Members
All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
Cancel()()() |
Used by the lease holder to indicate that it is no longer interested in the resource
or information held by the lease.
| |
Dispose()()() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.) | |
Expiration |
Returns the absolute time that the lease will expire, represented as milliseconds from
the beginning of the epoch, relative to the local clock.
| |
Renew(Int64) |
Used to renew a lease for an additional period of time.
|
Remarks
Particular instances of the Lease type will be created by the grantors of a lease, and
returned to the holder of the lease as part of the return value from a call that allocates
a leased resource. The call that requests a leased resource will typically include a
requested duration for the lease. If the request is for a particular duration, the lease
grantor is required to grant a lease of no more than the requested period of time. A lease
may be granted for a period of time shorter than that requested.