ListItem.ParseAndSetFieldValue method

Sets the value of the field for the list item based on an implementation specific transformation of the value.

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

Syntax

'Declaration
Public Sub ParseAndSetFieldValue ( _
    fieldName As String, _
    value As String _
)
'Usage
Dim instance As ListItem
Dim fieldName As String
Dim value As String

instance.ParseAndSetFieldValue(fieldName, _
    value)
public void ParseAndSetFieldValue(
    string fieldName,
    string value
)

Parameters

  • fieldName
    Type: System.String

    Specifies the field internal name.

  • value
    Type: System.String

    Specifies the new value for the field.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPFieldValueException]

Field is required and value is a null reference (Nothing in Visual Basic) or empty, the field does not support setting values, or the value cannot be converted to the type of the field. Error code: -2130575155.

[System.ArgumentException]

Field does not exist. Error code: -2147024809.

See also

Reference

ListItem class

ListItem members

Microsoft.SharePoint.Client namespace