SPField.ValidateParseAndSetValue method
SharePoint 2013
Calls ValidateAndParseValue(SPListItem, String) and assigns the returned object as the value of the field.
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | Item is null. |
The parsing and validating behavior of this method is dependent on how the derived class overrides ValidateAndParseValue(SPListItem, String).