LifetimeServices.LeaseTime Property

Definition

Gets or sets the initial lease time span for an 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

Property Value

The initial lease TimeSpan for objects that can have leases in the AppDomain.

Attributes

Exceptions

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.

Remarks

The default lease time span is 5 minutes.

Applies to