Поделиться через


Метод ListItem.ParseAndSetFieldValue

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

Пространство имен:  Microsoft.SharePoint.Client
Сборки:   Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)

Синтаксис

'Декларация
Public Sub ParseAndSetFieldValue ( _
    fieldName As String, _
    value As String _
)
'Применение
Dim instance As ListItem
Dim fieldName As String
Dim value As String

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

Параметры

  • fieldName
    Тип: System.String

    Specifies the field internal name.

  • value
    Тип: System.String

    Specifies the new value for the field.

Исключения

Исключение Условие
[Microsoft.SharePoint.SPFieldValueException]

Field is required and value is пустая ссылка (Nothing в 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.

См. также

Справочные материалы

ListItem класс

Элементы ListItem

Пространство имен Microsoft.SharePoint.Client