Compartir a través de


Field.Update Method

Commits changed properties of the field.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Overridable Sub Update
'Usage
Dim instance As Field

instance.Update()
[RemoteAttribute]
public virtual void Update()

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 a self-reference. Error code: -2130575271. Formula in FieldCalculated.Formula or Data validation criteria in Field.ValidationFormula contains a syntax error. Error code: -2130575270. Formula in FieldCalculated.Formula or Data validation criteria in Field.ValidationFormula refers to a field that does not exist. Error code: -2130575160. Type of the field is changed for an indexed field. Error code: -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 false. 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.

See Also

Reference

Field Class

Field Members

Microsoft.SharePoint.Client Namespace