System.Web.Hosting.VirtualPathProvider.InitializeLifetimeService Method

Gives the System.Web.Hosting.VirtualPathProvider 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 thereby prevents a lease from being created that would limit the System.Web.Hosting.VirtualPathProvider 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