WebPageRazorHost Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public class WebPageRazorHost : System.Web.Razor.RazorEngineHost
type WebPageRazorHost = class
inherit RazorEngineHost
Public Class WebPageRazorHost
Inherits RazorEngineHost
- Inheritance
- Derived
Constructors
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. |
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. |
Properties
CodeLanguage |
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the RazorCodeLanguage. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
Methods
AddGlobalImport(String) |
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. |
CreateMarkupParser() |
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates a markup parser. |
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. (Inherited from RazorEngineHost) |
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. (Inherited from RazorEngineHost) |
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. |
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. |
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. |
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. |
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. |
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. |