SPMobileBaseNumberFieldValidator.ValidateNumber Method
Validates the value of the Double in the UI.
Namespace: Microsoft.SharePoint.MobileControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Sub ValidateNumber ( _
minValue As Double, _
maxValue As Double _
)
'Usage
Dim minValue As Double
Dim maxValue As Double
Me.ValidateNumber(minValue, maxValue)
protected void ValidateNumber(
double minValue,
double maxValue
)
Parameters
minValue
Type: System.DoubleA Double that represents the smallest allowed value.
maxValue
Type: System.DoubleA Double that represents the largest allowed value.
Remarks
In general you should call Validate, rather than ValidateNumber.
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 SPFieldNumber object in the Field property if the user has changed the value and not saved.
See Also
Reference
SPMobileBaseNumberFieldValidator Class