Condividi tramite


SP.ListItem.parseAndSetFieldValue(fieldName, value_) Method

Applies to: SharePoint Foundation 2010

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

SP.ListItem.parseAndSetFieldValue(fieldName, value_);

Parameters

  • fieldName
    Specifies the field internal name.

Type: String

  • value_
    Specifies the new value for the field.

Type: String

Applies To

SP.ListItem Class

Exceptions

  • [Microsoft.SharePoint.SPFieldValueException]
    Field is required and value is null 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

SP.ListItem Methods

SP.ListItem Properties

SP Namespace