System.Runtime.Remoting.Lifetime.ILease.Renew Method

Renews a lease for the specified time.

Syntax

public TimeSpan Renew (TimeSpan renewalTime)

Parameters

renewalTime
The length of time to renew the lease by.

Returns

The new expiration time of the lease.

Remarks

The lease time is set to the maximum of the ILease.CurrentLeaseTime or the current time plus the renewal time.

Requirements

Namespace: System.Runtime.Remoting.Lifetime
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0