RazorTemplateEngine.GenerateCode RazorTemplateEngine.GenerateCode RazorTemplateEngine.GenerateCode Method

Definition

Overloads

GenerateCode(ITextBuffer, String, String, String, Nullable<CancellationToken>) GenerateCode(ITextBuffer, String, String, String, Nullable<CancellationToken>) 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>) GenerateCode(TextReader, String, String, String, Nullable<CancellationToken>) 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) GenerateCode(ITextBuffer, String, String, String) 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) GenerateCode(TextReader, String, String, String) 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>) GenerateCode(TextReader, Nullable<CancellationToken>) 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) GenerateCode(ITextBuffer) 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) GenerateCode(TextReader) 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>) GenerateCode(ITextBuffer, Nullable<CancellationToken>) 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>) GenerateCode(ITextBuffer, String, String, String, Nullable<CancellationToken>) 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, Nullable<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 ITextBuffer ITextBuffer

The input text to parse.

className
String String String

The name of the generated class, overriding whatever is specified in the host.

rootNamespace
String String String

The namespace in which the generated class will reside.

sourceFileName
String String 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.

GenerateCode(TextReader, String, String, String, Nullable<CancellationToken>) GenerateCode(TextReader, String, String, String, Nullable<CancellationToken>) 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, Nullable<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 TextReader TextReader

The input text to parse.

className
String String String

The name of the generated class, overriding whatever is specified in the host.

rootNamespace
String String String

The namespace in which the generated class will reside.

sourceFileName
String String 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.

GenerateCode(ITextBuffer, String, String, String) GenerateCode(ITextBuffer, String, String, String) 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 ITextBuffer ITextBuffer

The input text to parse.

className
String String String

The name of the generated class, overriding whatever is specified in the host.

rootNamespace
String String String

The namespace in which the generated class will reside.

sourceFileName
String String String

The file name to use in line pragmas.

Returns

The resulting parse tree AND generated Code DOM tree.

GenerateCode(TextReader, String, String, String) GenerateCode(TextReader, String, String, String) 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 TextReader TextReader

The input text to parse.

className
String String String

The name of the generated class, overriding whatever is specified in the host.

rootNamespace
String String String

The namespace in which the generated class will reside.

sourceFileName
String String String

The file name to use in line pragmas.

Returns

The resulting parse tree AND generated Code DOM tree.

GenerateCode(TextReader, Nullable<CancellationToken>) GenerateCode(TextReader, Nullable<CancellationToken>) 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, Nullable<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 TextReader 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.

GenerateCode(ITextBuffer) GenerateCode(ITextBuffer) 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 ITextBuffer ITextBuffer

The input text to parse.

Returns

The resulting parse tree AND generated Code DOM tree.

GenerateCode(TextReader) GenerateCode(TextReader) 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 TextReader TextReader

The input text to parse.

Returns

The resulting parse tree AND generated Code DOM tree.

GenerateCode(ITextBuffer, Nullable<CancellationToken>) GenerateCode(ITextBuffer, Nullable<CancellationToken>) 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, Nullable<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 ITextBuffer 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.

Applies to