Share via


MvcWebRazorHostFactory.CreateHost Method

Creates a Razor host.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Overrides Function CreateHost ( _
    virtualPath As String, _
    physicalPath As String _
) As WebPageRazorHost
'Usage
Dim instance As MvcWebRazorHostFactory
Dim virtualPath As String
Dim physicalPath As String
Dim returnValue As WebPageRazorHost

returnValue = instance.CreateHost(virtualPath, _
    physicalPath)
public override WebPageRazorHost CreateHost(
    string virtualPath,
    string physicalPath
)
public:
virtual WebPageRazorHost^ CreateHost(
    String^ virtualPath, 
    String^ physicalPath
) override
public override function CreateHost(
    virtualPath : String, 
    physicalPath : String
) : WebPageRazorHost

Parameters

  • virtualPath
    Type: System.String
    The virtual path to the target file.
  • physicalPath
    Type: System.String
    The physical path to the target file.

Return Value

Type: System.Web.WebPages.Razor.WebPageRazorHost
A Razor host.

See Also

Reference

MvcWebRazorHostFactory Class

System.Web.Mvc Namespace