MvcWebPageRazorHost Class

Definition

Configures the ASP.NET Razor parser and code generator for a specified file.

public class MvcWebPageRazorHost : System.Web.WebPages.Razor.WebPageRazorHost
type MvcWebPageRazorHost = class
    inherit WebPageRazorHost
Public Class MvcWebPageRazorHost
Inherits WebPageRazorHost
Inheritance

Constructors

MvcWebPageRazorHost(String, String)

Initializes a new instance of the MvcWebPageRazorHost class.

Properties

CodeLanguage

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

(Inherited from WebPageRazorHost)
DefaultBaseClass

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets a value for the DefaultBaseClass.

(Inherited from WebPageRazorHost)
DefaultClassName

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the name of the default class.

(Inherited from WebPageRazorHost)
DefaultDebugCompilation

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 debug compilation is set to default.

(Inherited from WebPageRazorHost)
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.

(Inherited from RazorEngineHost)
DefaultPageBaseClass

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the base class of the default page.

(Inherited from WebPageRazorHost)
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.

(Inherited from RazorEngineHost)
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.

(Inherited from RazorEngineHost)
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.

(Inherited from RazorEngineHost)
InstrumentedSourceFilePath

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the file path of the instrumental source.

(Inherited from WebPageRazorHost)
IsIndentingWithTabs

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

(Inherited from RazorEngineHost)
IsSpecialPage

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a value that indicates whether the webpage is a special page.

(Inherited from WebPageRazorHost)
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.

(Inherited from RazorEngineHost)
PhysicalPath

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the physical file system path of the razor host.

(Inherited from WebPageRazorHost)
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.

(Inherited from RazorEngineHost)
TabSize

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

(Inherited from RazorEngineHost)
VirtualPath

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

(Inherited from WebPageRazorHost)

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.

(Inherited from WebPageRazorHost)
DecorateCodeGenerator(RazorCodeGenerator)

Returns the ASP.NET MVC language-specific Razor code generator.

DecorateCodeParser(ParserBase)

Returns the ASP.NET MVC 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.

(Inherited from RazorEngineHost)
GetClassName(String)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Retrieves the name of the class to which the specified webpage belongs.

(Inherited from WebPageRazorHost)
GetCodeLanguage()

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

(Inherited from WebPageRazorHost)
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.

(Inherited from RazorEngineHost)
PostProcessGeneratedCode(CodeGeneratorContext)

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

(Inherited from WebPageRazorHost)
RegisterSpecialFile(String, String)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Registers the special file with the specified file name and base type name.

(Inherited from WebPageRazorHost)
RegisterSpecialFile(String, Type)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Registers the special file with the specified file name and base type.

(Inherited from WebPageRazorHost)

Applies to