RazorCodeLanguage.GetLanguageByExtension(String) Method
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.
Gets the RazorCodeLanguage registered for the specified file extension
public:
static Microsoft::AspNetCore::Razor::RazorCodeLanguage ^ GetLanguageByExtension(System::String ^ fileExtension);
public static Microsoft.AspNetCore.Razor.RazorCodeLanguage GetLanguageByExtension (string fileExtension);
static member GetLanguageByExtension : string -> Microsoft.AspNetCore.Razor.RazorCodeLanguage
Public Shared Function GetLanguageByExtension (fileExtension As String) As RazorCodeLanguage
Parameters
- fileExtension
- String
The extension, with or without a "."
Returns
The language registered for that extension