ILease.RenewOnCallTime 属性

定义

获取或设置对远程对象的调用续订 CurrentLeaseTime 的时间。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; }
[get: System.Security.SecurityCritical]
[set: System.Security.SecurityCritical]
public TimeSpan RenewOnCallTime { get; 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

属性值

TimeSpan

对远程对象的调用续订 CurrentLeaseTime 的时间。The amount of time by which a call to the remote object renews the CurrentLeaseTime.

属性

例外

直接调用方通过引用接口进行调用,且没有基础结构权限。The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.

注解

当你调用远程对象时,生存期服务会将添加 RenewOnCallTime 到,前提是在 CurrentLeaseTime CurrentLeaseTime 下放置了 RenewOnCallTimeWhen 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. 因此,顺序调用不会增加 CurrentLeaseTime 而不进行绑定。Sequential calls therefore do not increase the CurrentLeaseTime without bound. 相反,在调用后,将 CurrentLeaseTime 保证是 RenewOnCallTime 或更长时间。Instead, immediately after any call, the CurrentLeaseTime is guaranteed to be the RenewOnCallTime or longer.

适用于