SPFieldNumber.ValidateAndParseValue method

Validates and parses the input value and returns a valid object that can be the value of the field.

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


Public Overrides Function ValidateAndParseValue ( _
    item As SPListItem, _
    value As String _
) As Object
Dim instance As SPFieldNumber
Dim item As SPListItem
Dim value As String
Dim returnValue As Object

returnValue = instance.ValidateAndParseValue(item, _
public override Object ValidateAndParseValue(
    SPListItem item,
    string value


  • value
    Type: System.String

    A string with the value to be parsed and returned.

Return value

Type: System.Object
An object that can be assigned to the field as its value.


This override converts the value to a double, validates it and returns it.

See also


SPFieldNumber class

SPFieldNumber members

Microsoft.SharePoint namespace