RazorTemplateEngine.GenerateCode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GenerateCode(ITextBuffer, String, String, String, Nullable<CancellationToken>) |
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree. |
GenerateCode(TextReader, String, String, String, Nullable<CancellationToken>) |
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree. |
GenerateCode(ITextBuffer, String, String, String) |
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree. |
GenerateCode(TextReader, String, String, String) |
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree. |
GenerateCode(TextReader, Nullable<CancellationToken>) |
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree. |
GenerateCode(ITextBuffer) |
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree. |
GenerateCode(TextReader) |
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree. |
GenerateCode(ITextBuffer, Nullable<CancellationToken>) |
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree. |
GenerateCode(ITextBuffer, String, String, String, Nullable<CancellationToken>)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree.
public System.Web.Razor.GeneratorResults GenerateCode(System.Web.Razor.Text.ITextBuffer input, string className, string rootNamespace, string sourceFileName, System.Threading.CancellationToken? cancelToken);
member this.GenerateCode : System.Web.Razor.Text.ITextBuffer * string * string * string * Nullable<System.Threading.CancellationToken> -> System.Web.Razor.GeneratorResults
Public Function GenerateCode (input As ITextBuffer, className As String, rootNamespace As String, sourceFileName As String, cancelToken As Nullable(Of CancellationToken)) As GeneratorResults
Parameters
- input
- ITextBuffer
The input text to parse.
- className
- String
The name of the generated class, overriding whatever is specified in the host.
- rootNamespace
- String
The namespace in which the generated class will reside.
- sourceFileName
- String
The file name to use in line pragmas.
- cancelToken
- Nullable<CancellationToken>
A token used to cancel the parser.
Returns
The resulting parse tree AND generated Code DOM tree.
Applies to
GenerateCode(TextReader, String, String, String, Nullable<CancellationToken>)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree.
public System.Web.Razor.GeneratorResults GenerateCode(System.IO.TextReader input, string className, string rootNamespace, string sourceFileName, System.Threading.CancellationToken? cancelToken);
member this.GenerateCode : System.IO.TextReader * string * string * string * Nullable<System.Threading.CancellationToken> -> System.Web.Razor.GeneratorResults
Public Function GenerateCode (input As TextReader, className As String, rootNamespace As String, sourceFileName As String, cancelToken As Nullable(Of CancellationToken)) As GeneratorResults
Parameters
- input
- TextReader
The input text to parse.
- className
- String
The name of the generated class, overriding whatever is specified in the host.
- rootNamespace
- String
The namespace in which the generated class will reside.
- sourceFileName
- String
The file name to use in line pragmas.
- cancelToken
- Nullable<CancellationToken>
A token used to cancel the parser.
Returns
The resulting parse tree AND generated Code DOM tree.
Applies to
GenerateCode(ITextBuffer, String, String, String)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree.
public System.Web.Razor.GeneratorResults GenerateCode(System.Web.Razor.Text.ITextBuffer input, string className, string rootNamespace, string sourceFileName);
member this.GenerateCode : System.Web.Razor.Text.ITextBuffer * string * string * string -> System.Web.Razor.GeneratorResults
Public Function GenerateCode (input As ITextBuffer, className As String, rootNamespace As String, sourceFileName As String) As GeneratorResults
Parameters
- input
- ITextBuffer
The input text to parse.
- className
- String
The name of the generated class, overriding whatever is specified in the host.
- rootNamespace
- String
The namespace in which the generated class will reside.
- sourceFileName
- String
The file name to use in line pragmas.
Returns
The resulting parse tree AND generated Code DOM tree.
Applies to
GenerateCode(TextReader, String, String, String)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree.
public System.Web.Razor.GeneratorResults GenerateCode(System.IO.TextReader input, string className, string rootNamespace, string sourceFileName);
member this.GenerateCode : System.IO.TextReader * string * string * string -> System.Web.Razor.GeneratorResults
Public Function GenerateCode (input As TextReader, className As String, rootNamespace As String, sourceFileName As String) As GeneratorResults
Parameters
- input
- TextReader
The input text to parse.
- className
- String
The name of the generated class, overriding whatever is specified in the host.
- rootNamespace
- String
The namespace in which the generated class will reside.
- sourceFileName
- String
The file name to use in line pragmas.
Returns
The resulting parse tree AND generated Code DOM tree.
Applies to
GenerateCode(TextReader, Nullable<CancellationToken>)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree.
public System.Web.Razor.GeneratorResults GenerateCode(System.IO.TextReader input, System.Threading.CancellationToken? cancelToken);
member this.GenerateCode : System.IO.TextReader * Nullable<System.Threading.CancellationToken> -> System.Web.Razor.GeneratorResults
Public Function GenerateCode (input As TextReader, cancelToken As Nullable(Of CancellationToken)) As GeneratorResults
Parameters
- input
- TextReader
The input text to parse.
- cancelToken
- Nullable<CancellationToken>
A token used to cancel the parser.
Returns
The resulting parse tree AND generated Code DOM tree.
Applies to
GenerateCode(ITextBuffer)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree.
public System.Web.Razor.GeneratorResults GenerateCode(System.Web.Razor.Text.ITextBuffer input);
member this.GenerateCode : System.Web.Razor.Text.ITextBuffer -> System.Web.Razor.GeneratorResults
Public Function GenerateCode (input As ITextBuffer) As GeneratorResults
Parameters
- input
- ITextBuffer
The input text to parse.
Returns
The resulting parse tree AND generated Code DOM tree.
Applies to
GenerateCode(TextReader)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree.
public System.Web.Razor.GeneratorResults GenerateCode(System.IO.TextReader input);
member this.GenerateCode : System.IO.TextReader -> System.Web.Razor.GeneratorResults
Public Function GenerateCode (input As TextReader) As GeneratorResults
Parameters
- input
- TextReader
The input text to parse.
Returns
The resulting parse tree AND generated Code DOM tree.
Applies to
GenerateCode(ITextBuffer, Nullable<CancellationToken>)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template specified by the TextBuffer, generates code for it, and returns the constructed CodeDOM tree.
public System.Web.Razor.GeneratorResults GenerateCode(System.Web.Razor.Text.ITextBuffer input, System.Threading.CancellationToken? cancelToken);
member this.GenerateCode : System.Web.Razor.Text.ITextBuffer * Nullable<System.Threading.CancellationToken> -> System.Web.Razor.GeneratorResults
Public Function GenerateCode (input As ITextBuffer, cancelToken As Nullable(Of CancellationToken)) As GeneratorResults
Parameters
- input
- ITextBuffer
The input text to parse.
- cancelToken
- Nullable<CancellationToken>
A token used to cancel the parser.
Returns
The resulting parse tree AND generated Code DOM tree.