Bearbeiten

Teilen über


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
[<System.Security.SecurityCritical>]
override this.InitializeLifetimeService : unit -> obj
Public Overrides Function InitializeLifetimeService () As Object

Returns

Always null.

Implements

Attributes

Exceptions

The operation is attempted on an unloaded application domain.

Applies to