Share via


RazorBuildProvider Class

Definition

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Represents a build provider for Razor.

public class RazorBuildProvider : System.Web.Compilation.BuildProvider
type RazorBuildProvider = class
    inherit BuildProvider
Public Class RazorBuildProvider
Inherits BuildProvider
Inheritance
RazorBuildProvider

Constructors

Name Description
RazorBuildProvider()

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 RazorBuildProvider class.

Properties

Name Description
AssemblyBuilder

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the assembly builder for Razor environment.

CodeCompilerType

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the compiler settings for Razor environment.

VirtualPath

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

VirtualPathDependencies

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

Methods

Name Description
AddVirtualPathDependency(String)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Adds a virtual path dependency to the collection.

CreateHost()

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates a Razor engine host instance base on web configuration.

GenerateCode(AssemblyBuilder)

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

GetGeneratedType(CompilerResults)

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

GetHostFromConfig()

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates the Razor engine host instance based on the web configuration.

InternalOpenReader()

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

OnBeforeCompilePath(CompilingPathEventArgs)

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

Events

Name Description
CodeGenerationCompleted

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

CodeGenerationStarted

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

CompilingPath

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Occurs when compiling with a new virtual path.

Applies to