共用方式為


DefaultHtmlGenerator.GenerateValidationSummary 方法

定義

<產生 div > 元素,其中包含驗證錯誤的清單。

public:
 virtual Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GenerateValidationSummary(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, bool excludePropertyErrors, System::String ^ message, System::String ^ headerTag, System::Object ^ htmlAttributes);
public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GenerateValidationSummary (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, bool excludePropertyErrors, string message, string headerTag, object htmlAttributes);
abstract member GenerateValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * bool * string * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
override this.GenerateValidationSummary : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * bool * string * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Public Overridable Function GenerateValidationSummary (viewContext As ViewContext, excludePropertyErrors As Boolean, message As String, headerTag As String, htmlAttributes As Object) As TagBuilder

參數

viewContext
ViewContext
excludePropertyErrors
Boolean
message
String
headerTag
String
htmlAttributes
Object

Object,包含路由的參數。 參數會透過反映來擷取,方法是檢查 的屬性 Object 。 這 Object 通常是使用 Object 初始化運算式語法所建立。 或者, IDictionary<TKey,TValue> 包含路由參數的實例。

傳回

實作

適用於