AppDomain.InitializeLifetimeService Method

Definition

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

public:
 override System::Object ^ InitializeLifetimeService();
public override object InitializeLifetimeService ();
[System.Security.SecurityCritical]
public override object InitializeLifetimeService ();
override this.InitializeLifetimeService : unit -> obj
Public Overrides Function InitializeLifetimeService () As Object

Returns

Object

Always null.

Implements

Attributes

Exceptions

The operation is attempted on an unloaded application domain.

Applies to