LifetimeServices.LeaseManagerPollTime 屬性

定義

取得或設定使用期管理員在各個啟動過程 (Activation) 之間要清除過期使用期的時間間隔。

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

屬性值

TimeSpan

使用期管理員在檢查過期的使用期之後會睡眠的預設時間數量。

屬性

例外狀況

至少有一個呼叫堆疊中較高的呼叫端,不具有設定遠端類型和通道的使用權限。 只有在設定屬性值時才會擲回這個例外狀況。

備註

目前的 屬性會定義租用管理員變成作用中以清除過期租用的頻率。 例如,如果 LeaseManagerPollTime 設定為 100 秒,則會每隔 100 秒檢查租用清單是否有清除和更新。

屬性的 LeaseManagerPollTime 預設值為 10 秒。

適用於