ILease::RenewOnCallTime Property
Gets or sets the amount of time by which a call to the remote object renews the CurrentLeaseTime.
Assembly: mscorlib (in mscorlib.dll)
property TimeSpan RenewOnCallTime { [SecurityCriticalAttribute] TimeSpan get(); [SecurityCriticalAttribute] void set(TimeSpan value); }
Property Value
Type: System::TimeSpanThe amount of time by which a call to the remote object renews the CurrentLeaseTime.
| Exception | Condition |
|---|---|
| SecurityException | The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. |
When you make a call to a remote object, the lifetime service adds the RenewOnCallTime to the CurrentLeaseTime only if the CurrentLeaseTime has dropped below the RenewOnCallTime. Sequential calls therefore do not increase the CurrentLeaseTime without bound. Instead, immediately after any call, the CurrentLeaseTime is guaranteed to be the RenewOnCallTime or longer.
for operating with infrastructure code. Demand value: SecurityAction::LinkDemand; Permission value: SecurityPermissionFlag::Infrastructure
Available since 1.1