Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPFieldLookup.ValidateAndParseValue method

SharePoint 2013

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 override Object ValidateAndParseValue(
	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
An object that can be assigned to the field as its value.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.