SPField.ParseValue method

When overridden in a derived class, 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)

Syntax

'Declaration
Public Overridable Function ParseValue ( _
    item As SPListItem, _
    value As String _
) As Object
'Usage
Dim instance As SPField
Dim item As SPListItem
Dim value As String
Dim returnValue As Object

returnValue = instance.ParseValue(item, _
    value)
public virtual Object ParseValue(
    SPListItem item,
    string value
)

Parameters

  • value
    Type: System.String

    A string with the value to be parsed and returned.

Return value

Type: System.Object
A parsed version of value.

Remarks

The default implementation simply returns value (even if it is a null reference (Nothing in Visual Basic)); unless value is an empty string, in which case a null reference (Nothing in Visual Basic) is returned.

Consider calling this method in an override of the ValidateAndParseValue(SPListItem, String) method.

See also

Reference

SPField class

SPField members

Microsoft.SharePoint namespace