共用方式為


FormMappingContext.GetAllErrors 方法

定義

多載

GetAllErrors()

擷取模型的所有錯誤。

GetAllErrors(String)

擷取模型的所有錯誤。

GetAllErrors()

來源:
FormMappingContext.cs

擷取模型的所有錯誤。

public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Components.Forms.Mapping.FormMappingError> GetAllErrors ();
member this.GetAllErrors : unit -> seq<Microsoft.AspNetCore.Components.Forms.Mapping.FormMappingError>
Public Function GetAllErrors () As IEnumerable(Of FormMappingError)

傳回

如果有的話,與模型相關聯的錯誤清單。

適用於

GetAllErrors(String)

來源:
FormMappingContext.cs

擷取模型的所有錯誤。

public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Components.Forms.Mapping.FormMappingError> GetAllErrors (string formName);
member this.GetAllErrors : string -> seq<Microsoft.AspNetCore.Components.Forms.Mapping.FormMappingError>
Public Function GetAllErrors (formName As String) As IEnumerable(Of FormMappingError)

參數

formName
String

此內容下表單的表單名稱。

傳回

如果有的話,與模型相關聯的錯誤清單。

適用於