This topic has not yet been rated - Rate this topic

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)
[ClientCallableAttribute(Name = "ValidateSetValue")]
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 null.

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.