RazorTemplateEngine Class
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.
Entry-point to the Razor Template Engine
In this article
public ref class RazorTemplateEngine
public class RazorTemplateEngine
type RazorTemplateEngine = class
Public Class RazorTemplateEngine
Inheritance
Constructors
Fields
Properties
Host
The RazorEngineHost which defines the environment in which the generated template code will live
Methods
CreateChunkGenerator(String, String, String)
CreateCodeGenerator(CodeGeneratorContext)
CreateParser(String)
GenerateCode(ITextBuffer)
GenerateCode(ITextBuffer, Nullable<CancellationToken>)
GenerateCode(ITextBuffer, String, String, String)
GenerateCode(ITextBuffer, String, String, String, Nullable<CancellationToken>)
Parses the template specified by the TextBuffer, generates code for it, and returns the constructed code.
GenerateCode(Stream, String, String, String)
Parses the contents specified by the inputStream and returns the generated code.
GenerateCode(TextReader)
GenerateCode(TextReader, Nullable<CancellationToken>)
GenerateCode(TextReader, String, String, String)
GenerateCode(TextReader, String, String, String, Nullable<CancellationToken>)
GenerateCodeCore(ITextDocument, String, String, String, String, Nullable<CancellationToken>)
ParseTemplate(ITextBuffer)
ParseTemplate(ITextBuffer, Nullable<CancellationToken>)
Parses the template specified by the TextBuffer and returns it's result
ParseTemplate(TextReader, Nullable<CancellationToken>)
ParseTemplate(TextReader, String)
ParseTemplateCore(ITextDocument, String, Nullable<CancellationToken>)
Applies to