ValidationHelper.IsValid(String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the contents of the user input fields pass validation checks, and optionally lets you specify a list of fields to check.
public bool IsValid (params string[] fields);
member this.IsValid : string[] -> bool
Public Function IsValid (ParamArray fields As String()) As Boolean
Parameters
- fields
- String[]
Optional. The names (value of the name attribute) of the user input elements to check for validation errors. You can specify any number of element names, separated by commas. If you do not specify a list of fields, the method checks all elements that are registered for validation.
Returns
true if all specified field or fields pass validation checks; false if any field contains a validation error.