Table of Contents

Class MvcWebRazorHostFactory

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Creates instances of System.Web.Mvc.MvcWebPageRazorHost files.

public class MvcWebRazorHostFactory : WebRazorHostFactory
Inheritance
MvcWebRazorHostFactory

Constructors

MvcWebRazorHostFactory()

Initializes a new instance of the MvcWebRazorHostFactory class.

public MvcWebRazorHostFactory()

Methods

CreateHost(string, string)

Creates a Razor host.

public override WebPageRazorHost CreateHost(string virtualPath, string physicalPath)

Parameters

virtualPath string

The virtual path to the target file.

physicalPath string

The physical path to the target file.

Returns

WebPageRazorHost

A Razor host.