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

SPField.ValidateParseAndSetValue method

SharePoint 2013

Calls ValidateAndParseValue(SPListItem, String) and assigns the returned object as the value of the field.

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

public void ValidateParseAndSetValue(
	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 assigned to the field.

ExceptionCondition
ArgumentNullException

Item is a null reference (Nothing in Visual Basic).

The parsing and validating behavior of this method is dependent on how the derived class overrides ValidateAndParseValue(SPListItem, String).

Show:
© 2015 Microsoft