Share via


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
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
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_)
[RemoteAttribute]
public void ParseAndSetFieldValue(
    string fieldName,
    string value_
)

Parameters

  • fieldName
    Type: System.String

    Specifies the field internal name.

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