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
- className
Type: System.String
The class name.
- rootNamespaceName
Type: System.String
The root namespace.
- sourceFileName
Type: System.String
The name of the source file.
- host
Type: System.Web.Razor.RazorEngineHost
The ASP.NET Razor engine host.