LifetimeServices.LeaseManagerPollTime 属性

获取或设置每次激活租约管理器以清除到期租约之间的时间间隔。

**命名空间:**System.Runtime.Remoting.Lifetime
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
Public Shared Property LeaseManagerPollTime As TimeSpan
用法
Dim value As TimeSpan

value = LifetimeServices.LeaseManagerPollTime

LifetimeServices.LeaseManagerPollTime = value
public static TimeSpan LeaseManagerPollTime { get; set; }
public:
static property TimeSpan LeaseManagerPollTime {
    TimeSpan get ();
    void set (TimeSpan value);
}
/** @property */
public static TimeSpan get_LeaseManagerPollTime ()

/** @property */
public static void set_LeaseManagerPollTime (TimeSpan value)
public static function get LeaseManagerPollTime () : TimeSpan

public static function set LeaseManagerPollTime (value : TimeSpan)

属性值

租约管理器检查到期租约后休眠的默认时间。

异常

异常类型 条件

SecurityException

在调用堆栈上部,至少有一个调用方没有配置远程处理类型和通道的权限。仅在设置该属性值时才会引发此异常。

备注

当前属性定义租约管理器变为活动以清除到期租约的频率。例如,如果将 LeaseManagerPollTime 设置为 100 秒,则每 100 秒检查一次租约列表以进行清除及续订。

LeaseManagerPollTime 属性的默认值为 10 秒。

.NET Framework 安全性

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

LifetimeServices 类
LifetimeServices 成员
System.Runtime.Remoting.Lifetime 命名空间