Share via


RazorEngineHost Class

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

Represents the generated code for the razor engine host.

Inheritance Hierarchy

System.Object
  System.Web.Razor.RazorEngineHost
    System.Web.WebPages.Razor.WebPageRazorHost

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

Syntax

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

The RazorEngineHost type exposes the following members.

Constructors

  Name Description
Protected method RazorEngineHost() 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 RazorEngineHost class.
Public method RazorEngineHost(RazorCodeLanguage) 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 RazorEngineHost class.
Public method RazorEngineHost(RazorCodeLanguage, Func<ParserBase>) Initializes a new instance of the RazorEngineHost class.

Top

Properties

  Name Description
Public property CodeLanguage This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the languages supported by the code generator.
Public property DefaultBaseClass This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the default base class for the host.
Public property DefaultClassName This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the default class name for the host.
Public property DefaultNamespace This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the default namespace for the host.
Public property DesignTimeMode This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets a value that indicates whether the mode designs a time for the host.
Public property EnableInstrumentation This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the host that enables the instrumentation.
Public property GeneratedClassContext This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the generated class context for the host.
Public property InstrumentedSourceFilePath This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the instrumented source file path for the host.
Public property IsIndentingWithTabs Gets or sets whether the design time editor is using tabs or spaces for indentation.
Public property NamespaceImports This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the namespace imports for the host.
Public property StaticHelpers This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the static helpers for the host.
Public property TabSize Tab size used by the hosting editor, when indenting with tabs.

Top

Methods

  Name Description
Public method CreateMarkupParser This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates a markup parser using the specified language parser for the RazorEngineHost.
Public method DecorateCodeGenerator This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns the methods as language-specific Razor code generator.
Public method DecorateCodeParser This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns the methods as language-specific Razor code parser using the specified language parser.
Public method DecorateMarkupParser This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns the method to decorate markup parser using the specified language parser.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method PostProcessGeneratedCode(CodeGeneratorContext) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns this method to post all the processed generated code for the host.
Public method PostProcessGeneratedCode(CodeCompileUnit, CodeNamespace, CodeTypeDeclaration, CodeMemberMethod) Obsolete. This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns this method to post all the processed generated code for the host.
Public method ToString (Inherited from Object.)

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