LifetimeServices.LeaseManagerPollTime LifetimeServices.LeaseManagerPollTime LifetimeServices.LeaseManagerPollTime LifetimeServices.LeaseManagerPollTime Property

定义

获取或设置每次激活租约管理器以清除到期租约之间的时间间隔。Gets or sets the time interval between each activation of the lease manager to clean up expired leases.

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

属性值

租约管理器检查到期租约后休眠的默认时间。The default amount of time the lease manager sleeps after checking for expired leases.

异常

在调用堆栈上部,至少有一个调用方没有配置远程处理类型和通道的权限。At least one of the callers higher in the callstack does not have permission to configure remoting types and channels. 仅在设置该属性值时才会引发此异常。This exception is thrown only when setting the property value.

注解

当前属性定义租约管理器激活的频率, 以清理过期的租约。The current property defines the frequency at which the lease manager becomes active to clean up expired leases. 例如, 如果LeaseManagerPollTime设置为100秒, 则每100秒检查一次租约列表中是否有清理和续订。For example, if LeaseManagerPollTime is set to 100 seconds, the lease list is inspected for cleanups and renewals every 100 seconds.

LeaseManagerPollTime属性的默认值为10秒。The default value of the LeaseManagerPollTime property is 10 seconds.

安全性

SecurityPermission
用于配置远程处理基础结构。for configuration of the remoting infrastructure. 要求值: Demand;权限值:RemotingConfigurationDemand value: Demand; Permission value: RemotingConfiguration

适用于