ValidationHelper::Add Method (IEnumerable<String>, array<IValidator>)

Registers a list of user input elements for validation.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

public:
void Add(
	IEnumerable<String^>^ fields, 
	... array<IValidator^>^ validators
)

Parameters

fields
Type: System.Collections.Generic::IEnumerable<String>
The names (value of the name attribute) of the user input elements to validate.
validators
Type: array<System.Web.WebPages::IValidator>
The type of validation to register for each user input element specified in fields.
Show: