Field.UpdateAndPushChanges method
Commits changed properties of the field and propagates changes to all lists that use the field.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Sub UpdateAndPushChanges ( _
pushChangesToLists As Boolean _
)
'Usage
Dim instance As Field
Dim pushChangesToLists As Boolean
instance.UpdateAndPushChanges(pushChangesToLists)
public void UpdateAndPushChanges(
bool pushChangesToLists
)
Parameters
pushChangesToLists
Type: System.BooleanSpecifies whether to propagate changes to all lists that use the field.
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPException] | Field does not exist. Error code: -2130575340. Changing the type of the field is not supported. Error code: -2130575301. Formula in FieldCalculated.Formula or Data validation criteria in Field.ValidationFormula is not supported. Error code: -2130575295. Formula in FieldCalculated.Formula or Data validation criteria in Field.ValidationFormula refers to a field that is not supported. Error code: -2130575272. Formula in FieldCalculated.Formula or Data validation criteria in Field.ValidationFormula contains a circular reference or self-reference. Error code: -2130575271. Formula in FieldCalculated.Formula or Data validation criteria in Field.ValidationFormula contains a syntax error. -2130575270. Field.ValidationFormula refers to a field that does not exist. Error code: -2130575160. Type of the field is changed for an indexed field. -2130246331. AllowDuplicateValues is set to false on a field that is not an indexed field. Error code: -2130246240. Field is set to not be an indexed field, and AllowDuplicateValues is false. Error code: -2130246239. AllowDuplicateValues is set to false and an existing list item in the list contains duplicate values in the field. Error code: -2130246238. Type of the field is being changed and AllowDuplicateValues of the field is false. Error code: -2130246237. Type of the field is set to Boolean and AllowDuplicateValues is not supported. Error code: -2130246236. AllowDuplicateValues of the lookup field which is indexed is set to true. Error code: -2130246223. Total number of fields (2) in the list exceeds the limit. Error code: -2130246219. |
[Microsoft.SharePoint.SPQueryThrottledException] | Throttling limit is exceeded by the operation. Error code: -2147024860. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |