This documentation is archived and is not being maintained.

LifetimeServices.LeaseTime Property

Gets or sets the initial lease time span for an AppDomain.

[Visual Basic]
Public Shared Property LeaseTime As TimeSpan
public static TimeSpan LeaseTime {get; set;}
public: __property static TimeSpan get_LeaseTime();
public: __property static void set_LeaseTime(TimeSpan);
public static function get LeaseTime() : TimeSpan;
public static function set LeaseTime(TimeSpan);

Property Value

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


Exception Type Condition
SecurityException 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 default lease time span is 5 minutes.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

LifetimeServices Class | LifetimeServices Members | System.Runtime.Remoting.Lifetime Namespace