ILease::Renew Method (TimeSpan)
.NET Framework (current version)
Renews a lease for the specified time.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- renewalTime
-
Type:
System::TimeSpan
The length of time to renew the lease by.
| Exception | Condition |
|---|---|
| SecurityException | The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. |
The lease time is set to the maximum of the CurrentLeaseTime or the current time plus the renewal time.
SecurityPermission
for operating with infrastructure code. Demand value: SecurityAction::LinkDemand; Permission value: SecurityPermissionFlag::Infrastructure
.NET Framework
Available since 1.1
Available since 1.1
Show: