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)

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

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 .

See also

Reference

SPField class

SPField members

Microsoft.SharePoint namespace