Share via


RazorEngineHost Class

Definition

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.

public class RazorEngineHost
type RazorEngineHost = class
Public Class RazorEngineHost
Inheritance
RazorEngineHost
Derived

Constructors

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.

RazorEngineHost(RazorCodeLanguage, Func<ParserBase>)

Initializes a new instance of the RazorEngineHost class.

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.

Properties

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.

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.

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.

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.

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.

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.

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.

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.

IsIndentingWithTabs

Gets or sets whether the design time editor is using tabs or spaces for indentation.

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.

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.

TabSize

Tab size used by the hosting editor, when indenting with tabs.

Methods

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.

DecorateCodeGenerator(RazorCodeGenerator)

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.

DecorateCodeParser(ParserBase)

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.

DecorateMarkupParser(ParserBase)

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.

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.

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.

Applies to