SPFieldLookup.ValidateAndParseValue method
SharePoint 2013
Validates and parses the input value and returns a valid object that can be the value of the field.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
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.
This override converts value to either a SPFieldLookupValue or a SPFieldLookupValueCollection object, depending on whether multiple values are allowed for the field, and returns it.