Megosztás a következőn keresztül:


RazorCodeLanguage Class

Definition

Represents a code language in Razor.

public ref class RazorCodeLanguage abstract
public abstract class RazorCodeLanguage
type RazorCodeLanguage = class
Public MustInherit Class RazorCodeLanguage
Inheritance
RazorCodeLanguage
Derived

Constructors

RazorCodeLanguage()

Properties

LanguageName

The name of the language (for use in System.Web.Compilation.BuildProvider.GetDefaultCompilerTypeForLanguage)

Languages

Gets the list of registered languages mapped to file extensions (without a ".")

Methods

CreateChunkGenerator(String, String, String, RazorEngineHost)

Constructs the chunk generator. Must return a new instance on EVERY call to ensure thread-safety

CreateCodeGenerator(CodeGeneratorContext)
CreateCodeParser()

Constructs the code parser. Must return a new instance on EVERY call to ensure thread-safety

GetLanguageByExtension(String)

Gets the RazorCodeLanguage registered for the specified file extension

Applies to