Share via


SPMobileUrlFieldValidator.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 SPMobileUrlFieldValidator

instance.Validate()
public override void Validate()

Implements

IValidator.Validate()

Remarks

This override verifies that the value in the UI is formatted correctly for a URL. 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 method verifies the value in the UI, not the value of the SPFieldUrl object in the Field property. The value of the field in the UI will be different from the value of the SPField object in the Field property if the user has changed the value and not saved it.

See Also

Reference

SPMobileUrlFieldValidator Class

SPMobileUrlFieldValidator Members

Microsoft.SharePoint.MobileControls Namespace