Export (0) Print
Expand All
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 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).

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.