System.Web.Hosting.HostingEnvironment.InitializeLifetimeService Method

Gives the System.Web.Hosting.HostingEnvironment object an infinite lifetime by preventing a lease from being created.

Syntax

public override object InitializeLifetimeService ()

Returns

Always null.

Remarks

This method overrides the MarshalByRefObject.InitializeLifetimeService method in its base class. It always returns null and prevents a lease from being created that would limit the System.Web.Hosting.HostingEnvironment object's lifetime.

Requirements

Namespace: System.Web.Hosting
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0