Share via


SPMobileNumberFieldValidator.Validate Method

Verifies that 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 SPMobileNumberFieldValidator

instance.Validate()
public override void Validate()

Implements

IValidator.Validate()

Remarks

This override calls the base method and also verifies that the value is between the minimum and maximum values. If the value is not valid IsValid is set to false and an appropriate message is assigned to ErrorMessage.

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 and not saved.

See Also

Reference

SPMobileNumberFieldValidator Class

SPMobileNumberFieldValidator Members

Microsoft.SharePoint.MobileControls Namespace