ILease::Register Method (ISponsor^, TimeSpan)
.NET Framework (current version)
Registers a sponsor for the lease, and renews it by the specified TimeSpan.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- obj
-
Type:
System.Runtime.Remoting.Lifetime::ISponsor^
The callback object of the sponsor.
- 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. |
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: