Partager via


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.String

    Specifies the field internal name.

  • value
    Type : System.String

    Specifies 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.

Voir aussi

Référence

ListItem classe

ListItem - Membres

Microsoft.SharePoint.Client - Espace de noms