System.Web.Hosting.VirtualFileBase.InitializeLifetimeService Method

Gives a System.Web.Hosting.VirtualFileBase instance 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 on its base class. It always returns null and thereby prevents a lease from being created that would limit the lifetime of the virtual file or directory.

Requirements

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