AppDomain.InitializeLifetimeService AppDomain.InitializeLifetimeService AppDomain.InitializeLifetimeService AppDomain.InitializeLifetimeService Method

Definition

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

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

Returns

Always null.

Implements

Exceptions

Security

SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to