ILease.SponsorshipTimeout 属性

定义

获取或设置等待主办方返回租约续订时间的时间。Gets or sets the amount of time to wait for a sponsor to return with a lease renewal time.

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

属性值

TimeSpan

等待主办方返回租约续订时间的时间。The amount of time to wait for a sponsor to return with a lease renewal time.

属性

例外

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

注解

如果 SponsorshipTimeoutTimeSpan.Zero ,则此租约不会接受主办方。If the SponsorshipTimeout is TimeSpan.Zero, then this lease will not take sponsors.

如果主办方在超时期限内未响应续订租约的调用,则假定它是死的,并从当前租约的主办方列表中删除。If a sponsor does not respond to a call to renew a lease within the time-out period, it is assumed to be dead and is removed from the list of sponsors for the current lease.

适用于