Expand Minimize

Best Practices

Best Practice rules check managed client side object model code.

Index

Rule Description Type Severity
SPC059001: Consider implementing a pattern to avoid throttling with ClientContext.ExecuteQuery() SharePoint uses throttling to maintain optimal performance and reliability. Throttling limits the number of user actions or concurrent calls (by script or code) to prevent overuse of resources. Make sure you implement a pattern to retry your code execution in case you should get throttled. Assembly Warning
SPC059005: Consider verifying that the user has sufficient permissions when calling Web.Update(). Before executing an update on a Web object, it is a good idea to make sure the user has permissions to perform that action. Assembly Warning
SPC059006: Consider verifying that the user has sufficient permissions when calling Web.DeleteObject() Before deleting a Web object, it is a good idea to make sure the user has permissions to perform that action. Assembly Warning
SPC059007: Consider verifying that the user has sufficient permissions when calling List.Update() Before updating a List object, consider making sure the user has permissions to perform that action. Assembly Warning
SPC059008: Consider verifying that the user has sufficient permissions when calling List.DeleteObject() Before deleting a List object, consider making sure that the user has permissions to perform that action. Assembly Warning
SPC059009: Consider verifying that the user has sufficient permissions when calling ListItem.Update() Before updating a ListItem object, consider making sure that the user has permissions to perform that action. Assembly Warning
SPC059010: Consider verifying that the user has sufficient permissions when calling ListItem.DeleteObject() Before deleting a ListItem object, consider making sure that the user has permissions to perform that action. Assembly Warning
SPC059011: Consider verifying that the user has sufficient permissions when calling List.AddItem() Before adding a ListItem in a List, consider verifying that the user has permission to perform that action. Assembly Warning
SPC059012: Consider verifying that the user has sufficient permissions when calling ListCollection.Add() When adding a List to a Web, consider verifying that the user has sufficient permissions to perform this action. Assembly Warning
SPC059013: Consider verifying that the user has sufficient permissions when calling WebCollection.Add() Before adding a new Web object, consider making sure that the user has permissions to perform that action. 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.