Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ParseValue method

SPField.ParseValue method

SharePoint 2013

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)

public virtual Object ParseValue(
	SPListItem item,
	string value
)

Parameters

item
Type: Microsoft.SharePoint.SPListItem

An SPListItem containing a field whose new value needs to be validated.

value
Type: System.String

A string with the value to be parsed and returned.

Return value

Type: System.Object
A parsed version of value.

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.

Show:
© 2015 Microsoft