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
Protected method 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
Public property 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.)
Public property 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.
Public property 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.
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 indicating whether the code generator is in design-time mode.
Public property 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.
Public property 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.
Public property 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.
Public property 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
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method 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.
Protected method MemberwiseClone (Inherited from Object.)
Public method 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().)
Public method ThrowIfCanceled This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. (Inherited from ParserVisitor.)
Public method ToString (Inherited from Object.)
Public method 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.)
Public method 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).)
Public method 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.)
Public method 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).)
Public method 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
Public Extension Method 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.

See Also

Reference

System.Web.Razor.Generator Namespace