ValidationHelper.GetErrors(String[]) Method

Definition

Returns a list of current validation errors, and optionally lets you specify a list of fields to check.

public System.Collections.Generic.IEnumerable<string> GetErrors (params string[] fields);
member this.GetErrors : string[] -> seq<string>
Public Function GetErrors (ParamArray fields As String()) As IEnumerable(Of String)

Parameters

fields
String[]

Optional. The names (value of the name attribute) of the user input elements to get error information for. You can specify any number of element names, separated by commas. If you do not specify a list of fields, the method returns errors for all fields.

Returns

The list of errors.

Applies to