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 | |
---|---|---|
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) | 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. |
Top
Properties
Name | Description | |
---|---|---|
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. |
Top
Methods
Name | Description | |
---|---|---|
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 | 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 | 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 | 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. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
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. | |
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. | |
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.