Share via


WebPageRazorHost Class

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

Represents the razor hosts in a webpage.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class WebPageRazorHost _
    Inherits RazorEngineHost
'Usage
Dim instance As WebPageRazorHost
public class WebPageRazorHost : RazorEngineHost
public ref class WebPageRazorHost : public RazorEngineHost
type WebPageRazorHost =  
    class 
        inherit RazorEngineHost 
    end
public class WebPageRazorHost extends RazorEngineHost

The WebPageRazorHost type exposes the following members.

Constructors

  Name Description
Public method WebPageRazorHost(String) 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 WebPageRazorHost class with the specified virtual file path.
Public method WebPageRazorHost(String, String) 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 WebPageRazorHost class with the specified virtual and physical file path.

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 RazorCodeLanguage. (Overrides RazorEngineHost.CodeLanguage.)
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 a value for the DefaultBaseClass. (Overrides RazorEngineHost.DefaultBaseClass.)
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 name of the default class. (Overrides RazorEngineHost.DefaultClassName.)
Public property 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.
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. (Inherited from RazorEngineHost.)
Public property 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.
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. (Inherited from RazorEngineHost.)
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. (Inherited from RazorEngineHost.)
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. (Inherited from RazorEngineHost.)
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 file path of the instrumental source. (Overrides RazorEngineHost.InstrumentedSourceFilePath.)
Public property IsIndentingWithTabs Gets or sets whether the design time editor is using tabs or spaces for indentation. (Inherited from RazorEngineHost.)
Public property 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.
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. (Inherited from RazorEngineHost.)
Public property 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.
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. (Inherited from RazorEngineHost.)
Public property TabSize Tab size used by the hosting editor, when indenting with tabs. (Inherited from RazorEngineHost.)
Public property 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.

Top

Methods

  Name Description
Public methodStatic member AddGlobalImport This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Adds a global import on the webpage.
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. (Overrides RazorEngineHost.CreateMarkupParser().)
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. (Inherited from RazorEngineHost.)
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. (Inherited from RazorEngineHost.)
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. (Inherited from RazorEngineHost.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Protected method GetClassName 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.
Protected method 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.
Public methodStatic member GetGlobalImports This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the global imports for the webpage.
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.Gets the generated code after the process. (Overrides RazorEngineHost.PostProcessGeneratedCode(CodeGeneratorContext).)
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. (Inherited from RazorEngineHost.)
Protected method 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.
Protected method 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.
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.WebPages.Razor Namespace