QuickObjects.ObjectBase Send comments on this topic.
RequiredFieldValidator Constructor(BaseField,Boolean)
See Also 
Akal.QuickObjects.ObjectBase Namespace > RequiredFieldValidator Class > RequiredFieldValidator Constructor : RequiredFieldValidator Constructor(BaseField,Boolean)
field
Field instance that will be validated by this validator.
addToValidators
If true is passed the validator will be automatically added to the passed in field's validators collection.
Overloaded Constructor takes an instance of type BaseField and sets the FieldToValidate property. In addition to setting the FieldToValidate property, this constructor will accept a boolean value that will decide if the validator should be automatically added into the Validators collection of the passed in field.

Syntax

C# 
public RequiredFieldValidator( 
   BaseField field,
   bool addToValidators
)

Parameters

field
Field instance that will be validated by this validator.
addToValidators
If true is passed the validator will be automatically added to the passed in field's validators collection.

Requirements

Target Platforms: .NET Framework 1.1 or .NET Framework 2.0

See Also