Share via


MvcWebPageRazorHost Constructor

Initializes a new instance of the MvcWebPageRazorHost class.

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

Syntax

'Declaration
Public Sub New ( _
    virtualPath As String, _
    physicalPath As String _
)
'Usage
Dim virtualPath As String
Dim physicalPath As String

Dim instance As New MvcWebPageRazorHost(virtualPath, _
    physicalPath)
public MvcWebPageRazorHost(
    string virtualPath,
    string physicalPath
)
public:
MvcWebPageRazorHost(
    String^ virtualPath, 
    String^ physicalPath
)
public function MvcWebPageRazorHost(
    virtualPath : String, 
    physicalPath : String
)

Parameters

  • virtualPath
    Type: System.String
    The virtual path of the ASP.NET Razor file.
  • physicalPath
    Type: System.String
    The physical path of the ASP.NET Razor file.

See Also

Reference

MvcWebPageRazorHost Class

System.Web.Mvc.Razor Namespace