Share via


BaseNumberField.Validate method

Verifies that the value of BaseNumberField, as it appears in the UI, is a permissible value for the field.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Sub Validate
'Usage
Dim instance As BaseNumberField

instance.Validate()
public override void Validate()

Implements

IValidator.Validate()

Remarks

Validate verifies the value of the control in the UI, not the underlying value (which is the ItemFieldValue property of the SPFieldNumber object that has the BaseNumberField as its FieldRenderingControl property). Use Validate only when you need validation of the UI value. To validate ItemFieldValue, use GetValidatedString().

See also

Reference

BaseNumberField class

BaseNumberField members

Microsoft.SharePoint.WebControls namespace