SPField.ParseAndSetValue Method

Sets the specified field item to the specified value.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Overridable Sub ParseAndSetValue ( _
    item As SPListItem, _
    value As String _
)
'Usage
Dim instance As SPField
Dim item As SPListItem
Dim value As String

instance.ParseAndSetValue(item, value)
public virtual void ParseAndSetValue(
    SPListItem item,
    string value
)

Parameters

  • value
    Type: System.String

    The value to which the list item is set.

Exceptions

Exception Condition
ArgumentNullException

item is null .

SPException

value is required and is either empty or null .

Remarks

This method 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 item to null .

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace