RazorCodeLanguage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |