FormMappingContext.GetErrors Method

Definition

Overloads

GetErrors(String)

Retrieves the list of errors for a given model key.

GetErrors(String, String)

Retrieves the list of errors for a given model key.

GetErrors(String)

Source:
FormMappingContext.cs
Source:
FormMappingContext.cs

Retrieves the list of errors for a given model key.

public Microsoft.AspNetCore.Components.Forms.Mapping.FormMappingError? GetErrors (string key);
member this.GetErrors : string -> Microsoft.AspNetCore.Components.Forms.Mapping.FormMappingError
Public Function GetErrors (key As String) As FormMappingError

Parameters

key
String

The key used to identify the specific part of the model.

Returns

The list of errors associated with that part of the model if any.

Applies to

GetErrors(String, String)

Source:
FormMappingContext.cs
Source:
FormMappingContext.cs

Retrieves the list of errors for a given model key.

public Microsoft.AspNetCore.Components.Forms.Mapping.FormMappingError? GetErrors (string formName, string key);
member this.GetErrors : string * string -> Microsoft.AspNetCore.Components.Forms.Mapping.FormMappingError
Public Function GetErrors (formName As String, key As String) As FormMappingError

Parameters

formName
String

Form name for a form under this context.

key
String

The key used to identify the specific part of the model.

Returns

The list of errors associated with that part of the model if any.

Applies to