共用方式為


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

運算式。

傳回

顯示名稱。

適用於