ListItem.ParseAndSetFieldValue - Méthode
Sets the value of the field for the list item based on an implementation specific transformation of the value.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Sub ParseAndSetFieldValue ( _
fieldName As String, _
value As String _
)
'Utilisation
Dim instance As ListItem
Dim fieldName As String
Dim value As String
instance.ParseAndSetFieldValue(fieldName, _
value)
public void ParseAndSetFieldValue(
string fieldName,
string value
)
Paramètres
fieldName
Type : System.StringSpecifies the field internal name.
value
Type : System.StringSpecifies the new value for the field.
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPFieldValueException] | Field is required and value is une référence Null (Rien dans 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. |