System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider Method

Registers a new System.Web.Hosting.VirtualPathProvider instance with the ASP.NET compilation system.

Syntax

public static void RegisterVirtualPathProvider (VirtualPathProvider virtualPathProvider)

Parameters

virtualPathProvider
The new System.Web.Hosting.VirtualPathProvider instance to add to the compilation system.

Remarks

The HostingEnvironment.RegisterVirtualPathProvider(VirtualPathProvider) method adds the specified System.Web.Hosting.VirtualPathProvider instance to the application's list of virtual-path providers.

For more information, see the System.Web.Hosting.VirtualPathProvider class overview.

Requirements

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