Correctness |
Correctness rules check managed client side object model code.
Index
Rule | Description | Type | Severity |
---|---|---|---|
SPC019005: Verify the CheckOutType before checking out an item | When you check out an item in SharePoint, make sure that it is not already checked out. | Assembly | Warning |
SPC019007: You must call Update() to persist any changes to the Web object. | When modifying the Web object you need to call Web.Update() in order to persist the changes to the object. | Assembly | Warning |
SPC019008: You must call List.Update() to persist any changes to the List object. | When modifying the List object you need to call List.Update() in order to persist the changes to the object. | Assembly | Warning |
SPC019009: You must call both Field.Update() to save any changes to the Field object. | When modifying a Field object you need to call Field.Update() in order to persist the changes to the object. | Assembly | Warning |
SPC019010: You must call Update() to persist any changes to the ListItem object. | When modifying the ListItem object you need to call ListItem.Update() in order to persist the changes to the object. | Assembly | Warning |
SPC019011: Verify that the File is checked out before checking it in. | When you check in an item in SharePoint, consider verifying that it is checked out using CheckOutType first. | Assembly | Warning |
SPC019012: You cannot specify both the Id property and the ParentContentType property when creating a Content Type. | Don't specify both the Id property and the ParentContentType property when creating a Content Type. This will result in an Microsoft.SharePoint.Client.ServerException. Either specify only the Id property or the ParentContentType property. | Assembly | Error |
SPC019013: Don't forget to call ClientContext.ExecuteQuery() | When you work with the ClientContext and retrieve data it is important to call ClientContext.ExecuteQuery() to send the request to the server. | Assembly | Warning |
SPC019017: Do not set properties from inside a ConditionalScope block. | SharePoint Client Side Object Model does not allow setting properties from the inside a ConditionalScope. | Assembly | Error |
SPC019018: You must call ClientContext.ExecuteQuery() to persist any changes to the Web object. | When modifying the Web object you need to call ClientContext.ExecuteQuery() in order to persist the changes to the object. | Assembly | Warning |
SPC019019: You must call ClientContext.ExecuteQuery() to persist any changes to the server. | When modifying the List object you need to call ClientContext.ExecuteQuery() in order to persist the changes to the server. | Assembly | Warning |
SPC019020: You must call ClientContext.ExecuteQuery() to persist any changes to the server. | When modifying the ListItem object you need to call ClientContext.ExecuteQuery in order to persist the changes to the server. | Assembly | Warning |
SPC019021: You must call ClientContext.ExecuteQuery() to persist any changes to the server. | When modifying a Field object you need to call ClientContext.ExecuteQuery() in order to persist the changes to the server. | Assembly | Warning |
SPC019022: Ensure you are calling ListItem.Update() before ClientContext.ExecuteQuery() when modifying a List Item. | When modifying a ListItem object, ensure you are calling ListItem.Update() before ClientContext.ExecuteQuery() in order to persist the changes to the object. | Assembly | Warning |
SPC019023: Ensure you are calling List.Update() before ClientContext.ExecuteQuery() when modifying a List object. | When modifying a List object, ensure you are calling List.Update() before ClientContext.ExecuteQuery() in order to persist the changes to the object. | Assembly | Warning |
SPC019024: Ensure you are calling Web.Update() before ClientContext.ExecuteQuery() when modifying a Web object. | When modifying a Web object, ensure you are calling Web.Update() before ClientContext.ExecuteQuery() in order to persist the changes to the object. | Assembly | Warning |
SPC019025: Ensure you are calling Field.Update() before ClientContext.ExecuteQuery() when modifying a Field object. | When modifying a Field object, ensure you are calling Field.Update() before ClientContext.ExecuteQuery() in order to persist the changes to the object. | Assembly | Warning |
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.