MvcCSharpRazorCodeGenerator Constructor

Initializes a new instance of the MvcCSharpRazorCodeGenerator class.

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

Syntax

'Declaration
Public Sub New ( _
    className As String, _
    rootNamespaceName As String, _
    sourceFileName As String, _
    host As RazorEngineHost _
)
'Usage
Dim className As String
Dim rootNamespaceName As String
Dim sourceFileName As String
Dim host As RazorEngineHost

Dim instance As New MvcCSharpRazorCodeGenerator(className, _
    rootNamespaceName, sourceFileName, _
    host)
public MvcCSharpRazorCodeGenerator(
    string className,
    string rootNamespaceName,
    string sourceFileName,
    RazorEngineHost host
)
public:
MvcCSharpRazorCodeGenerator(
    String^ className, 
    String^ rootNamespaceName, 
    String^ sourceFileName, 
    RazorEngineHost^ host
)
public function MvcCSharpRazorCodeGenerator(
    className : String, 
    rootNamespaceName : String, 
    sourceFileName : String, 
    host : RazorEngineHost
)

Parameters

  • sourceFileName
    Type: System.String
    The name of the source file.

See Also

Reference

MvcCSharpRazorCodeGenerator Class

System.Web.Mvc.Razor Namespace