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.RazorCodeLanguagePublic Shared Function GetLanguageByExtension (fileExtension As String) As RazorCodeLanguageParameters
- fileExtension
- String
The extension, with or without a "."
Returns
The language registered for that extension