LifetimeServices.LeaseTime 屬性

定義

取得或設定 AppDomain 的初始使用期時間間距。

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

屬性值

TimeSpan 可以擁有使用期的物件的初始使用期 AppDomain

屬性

例外狀況

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

備註

默認租用時間範圍是 5 分鐘。

適用於