ILease.InitialLeaseTime Property

 

Gets or sets the initial time for the lease.

Namespace:   System.Runtime.Remoting.Lifetime
Assembly:  mscorlib (in mscorlib.dll)

TimeSpan InitialLeaseTime {
	[SecurityCriticalAttribute]
	get;
	[SecurityCriticalAttribute]
	set;
}

Property Value

Type: System.TimeSpan

The initial time for the lease.

Exception Condition
SecurityException

The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.

If the InitialLeaseTime property is set to TimeSpan.Zero, then the lease will never time out and the object associated with it will have an infinite lifetime.

SecurityPermission

for operating with infrastructure code. Demand value: SecurityAction.LinkDemand; Permission value: SecurityPermissionFlag.Infrastructure

.NET Framework
Available since 1.1
Return to top
Show: