SPMobileTextFieldValidator.Validate Method
Verifies the value of the field in the UI.
Namespace: Microsoft.SharePoint.MobileControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Sub Validate
'Usage
Dim instance As SPMobileTextFieldValidator
instance.Validate()
public override void Validate()
Implements
Remarks
This override calls the base method and also verifies that the value does not exceed the value of the MaxLength property. If the value is not valid, the IsValid property is set to false and an appropriate message is assigned to the ErrorMessage property.
Note
This override verifies the value in the UI. The value of the field in the UI will be different from the value of the SPFieldText object in the Field property if the user has changed the value but has not saved it.
See Also
Reference
SPMobileTextFieldValidator Class