RazorCodeGenerator Class
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Represents a Razor code generator.
Inheritance Hierarchy
System.Object
System.Web.Razor.Parser.ParserVisitor
System.Web.Razor.Generator.RazorCodeGenerator
System.Web.Razor.Generator.CSharpRazorCodeGenerator
System.Web.Razor.Generator.VBRazorCodeGenerator
Namespace: System.Web.Razor.Generator
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Public MustInherit Class RazorCodeGenerator _
Inherits ParserVisitor
'Usage
Dim instance As RazorCodeGenerator
public abstract class RazorCodeGenerator : ParserVisitor
public ref class RazorCodeGenerator abstract : public ParserVisitor
[<AbstractClassAttribute>]
type RazorCodeGenerator =
class
inherit ParserVisitor
end
public abstract class RazorCodeGenerator extends ParserVisitor
The RazorCodeGenerator type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
RazorCodeGenerator | 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 RazorCodeGenerator class. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
CancelToken | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the cancellation token. (Inherited from ParserVisitor.) |
![]() |
ClassName | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the class name for this code. |
![]() |
Context | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the context of this code generator. |
![]() |
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 indicating whether the code generator is in design-time mode. |
![]() |
GenerateLinePragmas | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets a value indicating whether the generator should generate line pragmas in the Razor code. |
![]() |
Host | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the razor engine host. |
![]() |
RootNamespaceName | 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 root namespace. |
![]() |
SourceFileName | 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 source file. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
Initialize | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes the current RazorCodeGenerator instance. |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
OnComplete | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Raises the Complete event. (Overrides ParserVisitor.OnComplete().) |
![]() |
ThrowIfCanceled | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. (Inherited from ParserVisitor.) |
![]() |
ToString | (Inherited from Object.) |
![]() |
VisitBlock | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the specified block. (Inherited from ParserVisitor.) |
![]() |
VisitEndBlock | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the end block. (Overrides ParserVisitor.VisitEndBlock(Block).) |
![]() |
VisitError | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the given razor error. (Inherited from ParserVisitor.) |
![]() |
VisitSpan | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the span. (Overrides ParserVisitor.VisitSpan(Span).) |
![]() |
VisitStartBlock | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the start block. (Overrides ParserVisitor.VisitStartBlock(Block).) |
Top
Extension Methods
Name | Description | |
---|---|---|
![]() |
Visit | (Defined by ParserVisitorExtensions.) |
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.