RazorCodeGenerator Constructor
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Initializes a new instance of the RazorCodeGenerator class.
Namespace: System.Web.Razor.Generator
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Protected 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 RazorCodeGenerator(className, _
rootNamespaceName, sourceFileName, _
host)
protected RazorCodeGenerator(
string className,
string rootNamespaceName,
string sourceFileName,
RazorEngineHost host
)
protected:
RazorCodeGenerator(
String^ className,
String^ rootNamespaceName,
String^ sourceFileName,
RazorEngineHost^ host
)
new :
className:string *
rootNamespaceName:string *
sourceFileName:string *
host:RazorEngineHost -> RazorCodeGenerator
protected function RazorCodeGenerator(
className : String,
rootNamespaceName : String,
sourceFileName : String,
host : RazorEngineHost
)
Parameters
- className
Type: System.String
The class name.
- rootNamespaceName
Type: System.String
The root namespace name.
- sourceFileName
Type: System.String
The source file name.
- host
Type: System.Web.Razor.RazorEngineHost
The host.