Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPField.ParseAndSetValue method

When overridden in a derived class, sets the specified field item to the specified value.

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

public virtual void ParseAndSetValue(
	SPListItem item,
	string value
)

Parameters

item
Type: Microsoft.SharePoint.SPListItem

The list item whose field is set to the specified value.

value
Type: System.String

The value to which the list item is set.

ExceptionCondition
ArgumentNullException

item is null .

SPException

value is required and is either empty or null .

The default implementation sets the specified list item to the specified value. If the value is required, value cannot be null . If the value is not required and value is null , this method sets the value of the field in item to null .

Show:
© 2015 Microsoft