LifetimeServices.LeaseManagerPollTime 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置每次激活租约管理器以清除到期租约之间的时间间隔。
public:
static property TimeSpan LeaseManagerPollTime { TimeSpan get(); void set(TimeSpan value); };
C#
public static TimeSpan LeaseManagerPollTime { get; set; }
C#
public static TimeSpan LeaseManagerPollTime { get; [System.Security.SecurityCritical] set; }
static member LeaseManagerPollTime : TimeSpan with get, set
[<set: System.Security.SecurityCritical>]
static member LeaseManagerPollTime : TimeSpan with get, set
Public Shared Property LeaseManagerPollTime As TimeSpan
租约管理器检查到期租约后休眠的默认时间。
- 属性
在调用堆栈上部,至少有一个调用方没有配置远程处理类型和通道的权限。 仅在设置该属性值时才会引发此异常。
当前 属性定义租约管理器变为活动状态以清理过期租约的频率。 例如,如果 LeaseManagerPollTime 设置为 100 秒,则每隔 100 秒检查一次租约列表的清理和续订。
属性的 LeaseManagerPollTime 默认值为 10 秒。
产品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |