SPFieldNumber.ParseValue method

Parses a potential value of the field and returns an object that can be assigned as the value of the field.

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


Public Overrides Function ParseValue ( _
    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.ParseValue(item, _
public override Object ParseValue(
    SPListItem item,
    string value


  • value
    Type: System.String

    A string with the value to be parsed and returned.

Return value

Type: System.Object
A parsed version of value.


This implementation converts value to a double and returns it. If the value is a percentage it returns the converted value divided by 100.0. (If value is an empty string or a null reference (Nothing in Visual Basic), a null reference (Nothing in Visual Basic) is returned.)

See also


SPFieldNumber class

SPFieldNumber members

Microsoft.SharePoint namespace