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.StringSpecifies the field internal name.
value
类型:System.StringSpecifies the new value for the field.
异常
异常 | 条件 |
---|---|
[Microsoft.SharePoint.SPFieldValueException] | Field is required and value is 空引用(无 在 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. |