Whenever
we delete a sharepoint list or list item from the User Interface it get
stored within the recycle bin of the site.
But when we delete it programmatically it get's deleted permanently. |
Generally we use the list.Delete() or item.Delete() method to delete the list or item.
Instead of using the Delete() method we can use the Recycle() method
i.e list.Recycle() or item.Recycle(). This will store the item within the recycle bin. |
Ads
Saturday, 23 March 2013
Avoid permanent deletion of list item while use C# code.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment