Redigera

Dela via


ILease.RenewOnCallTime Property

Definition

Gets or sets the amount of time by which a call to the remote object renews the CurrentLeaseTime.

public:
 property TimeSpan RenewOnCallTime { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan RenewOnCallTime { get; set; }
public TimeSpan RenewOnCallTime { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
member this.RenewOnCallTime : TimeSpan with get, set
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.RenewOnCallTime : TimeSpan with get, set
Public Property RenewOnCallTime As TimeSpan

Property Value

The amount of time by which a call to the remote object renews the CurrentLeaseTime.

Attributes

Exceptions

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

Remarks

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.

Applies to