RazorCodeLanguage.GetLanguageByExtension(String) 方法

定义

获取为指定文件扩展名注册的 RazorCodeLanguage

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

参数

fileExtension
String

扩展名,带或不带“”。

返回

为该扩展注册的语言

适用于