RazorTemplateEngine.CreateCodeGenerator Method
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Creates a code generator.
Namespace: System.Web.Razor
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Protected Friend Overridable Function CreateCodeGenerator ( _
className As String, _
rootNamespace As String, _
sourceFileName As String _
) As RazorCodeGenerator
'Usage
Dim className As String
Dim rootNamespace As String
Dim sourceFileName As String
Dim returnValue As RazorCodeGenerator
returnValue = Me.CreateCodeGenerator(className, _
rootNamespace, sourceFileName)
protected internal virtual RazorCodeGenerator CreateCodeGenerator(
string className,
string rootNamespace,
string sourceFileName
)
protected public:
virtual RazorCodeGenerator^ CreateCodeGenerator(
String^ className,
String^ rootNamespace,
String^ sourceFileName
)
abstract CreateCodeGenerator :
className:string *
rootNamespace:string *
sourceFileName:string -> RazorCodeGenerator
override CreateCodeGenerator :
className:string *
rootNamespace:string *
sourceFileName:string -> RazorCodeGenerator
function CreateCodeGenerator(
className : String,
rootNamespace : String,
sourceFileName : String
) : RazorCodeGenerator
Parameters
- className
Type: System.String
The name of the generated class.
- rootNamespace
Type: System.String
The namespace in which the generated class will reside.
- sourceFileName
Type: System.String
The file name to use in line pragmas.
Return Value
Type: System.Web.Razor.Generator.RazorCodeGenerator
The created RazorCodeGenerator.