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.

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

public ref class RazorCodeGenerator abstract : public ParserVisitor

The RazorCodeGenerator type exposes the following members.

  NameDescription
Protected methodRazorCodeGeneratorThis 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

  NameDescription
Public propertyCancelTokenThis 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 propertyClassNameThis 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 propertyContextThis 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 propertyDesignTimeModeThis 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 propertyGenerateLinePragmasThis 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 propertyHostThis 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 propertyRootNamespaceNameThis 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 propertySourceFileNameThis 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

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodInitializeThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes the current RazorCodeGenerator instance.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOnCompleteThis 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 methodThrowIfCanceledThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. (Inherited from ParserVisitor.)
Public methodToString (Inherited from Object.)
Public methodVisitBlockThis 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 methodVisitEndBlockThis 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 methodVisitErrorThis 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 methodVisitSpanThis 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 methodVisitStartBlockThis 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

  NameDescription
Public Extension MethodVisit (Defined by ParserVisitorExtensions.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: