InitializeLifetimeService Method

AppDomain.InitializeLifetimeService Method

Gives the AppDomain an infinite lifetime by preventing a lease from being created.

[Visual Basic]
Overrides Public Function InitializeLifetimeService() As Object _
   Implements _AppDomain.InitializeLifetimeService
[C#]
public override object InitializeLifetimeService();
[C++]
public: Object* InitializeLifetimeService();
[JScript]
public override function InitializeLifetimeService() : Object;

Return Value

Always a null reference (Nothing in Visual Basic).

Implements

_AppDomain.InitializeLifetimeService

Exceptions

Exception Type Condition
AppDomainUnloadedException Operations are attempted on an unloaded application domain.

Requirements

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

AppDomain Class | AppDomain Members | System Namespace

Show:
© 2016 Microsoft