HtmlHelper.GenerateDisplayName(ModelExplorer, String) 方法

定义

生成显示名称。

protected:
 virtual System::String ^ GenerateDisplayName(Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression);
protected virtual string GenerateDisplayName (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression);
abstract member GenerateDisplayName : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string -> string
override this.GenerateDisplayName : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string -> string
Protected Overridable Function GenerateDisplayName (modelExplorer As ModelExplorer, expression As String) As String

参数

modelExplorer
ModelExplorer

ModelExplorer

expression
String

表达式。

返回

显示名称。

适用于