This documentation is archived and is not being maintained.

ISponsor.Renewal Method

Requests a sponsoring client to renew the lease for the specified object.

[Visual Basic]
Function Renewal( _
   ByVal lease As ILease _
) As TimeSpan
[C#]
TimeSpan Renewal(
   ILease lease
);
[C++]
TimeSpan Renewal(
   ILease* lease
);
[JScript]
function Renewal(
   lease : ILease
) : TimeSpan;

Parameters

lease
The lifetime lease of the object that requires lease renewal.

Return Value

The additional lease time for the specified object.

Exceptions

Exception Type Condition
SecurityException The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.

Remarks

The Renewal method is called by the distributed garbage collector to renew the lease for the specified object.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ISponsor Interface | ISponsor Members | System.Runtime.Remoting.Lifetime Namespace

Show: