Share via


RazorTemplateEngine Class

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Represents an entry-point to the Razor Template Engine.

Inheritance Hierarchy

System.Object
  System.Web.Razor.RazorTemplateEngine

Namespace:  System.Web.Razor
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
Public Class RazorTemplateEngine
'Usage
Dim instance As RazorTemplateEngine
public class RazorTemplateEngine
public ref class RazorTemplateEngine
type RazorTemplateEngine =  class end
public class RazorTemplateEngine

The RazorTemplateEngine type exposes the following members.

Constructors

  Name Description
Public method RazorTemplateEngine 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 RazorTemplateEngine class.

Top

Properties

  Name Description
Public property Host This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the RazorEngineHost which defines the environment in which the generated template code will live.

Top

Methods

  Name Description
Protected method CreateCodeGenerator This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates a code generator.
Protected method CreateParser This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates a RazorParser.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method 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 method 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 method 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 method 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 method 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 method 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 method 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 method 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.
Protected method GenerateCodeCore This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Generates a code core.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ParseTemplate(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 and returns its result.
Public method ParseTemplate(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 and returns its result.
Public method ParseTemplate(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 and returns its result.
Public method ParseTemplate(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 and returns its result.
Protected method ParseTemplateCore This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Parses the template core.
Public method ToString (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member DefaultClassName This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the default class name of the template.
Public fieldStatic member DefaultNamespace This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the default namespace for the template.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Razor Namespace