Version Control for each item programmatically in sharepoint 2010
I want to store different number of versions for each item in a single library depending upon the flag. I know out-of the box feature would apply at document library level, but I want to do it at it开发者_如何学Cem level with customization. Any idea , how can I do it?
You need to set the DocLib settings to unlimited (our your max) number of versions
And then implement an SPItemEventReceiver where you're deleting versions in the ItemUpdated/ItemCheckedIn events
精彩评论