문제

Could anybody help me to understand a difference between DeleteObject() and Recycle() methods for SP.Folder?

I found this documentation, but it's not clear for me.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.recycle.aspx

도움이 되었습니까?

해결책

Delete()

delete permanently without using the recycle bin.

to move item to recycle bin use

Recycle();

http://nickgrattan.wordpress.com/2007/10/09/spfolder-splist-deleting-versus-recycling/

다른 팁

SharePoint maintains a recycle bin like a windows OS, that we can use it through our code for temporary deletion. I used Recycle() in one of our project. When we use Delete() or DeleteObject() it deletes the item directly without putting them in recycle bin but if you use Recycle() method it will send the item in recycle bin.

Shiv Tomar

Shiv.Tomar@tekritisoftware.com

http://www.tekritisoftware.com/brochure/Microsoft-Sharepoint-Development

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top