Dela via


RazorCodeLanguage.GetLanguageByExtension(String) Method

Definition

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

Applies to