0
votes
1answer
19 views

Strange behaviour Generic List

I have written some code to delete minor versions after a specific time. I don't know how it is possible, but it only deletes uneven versions, and not the even ones. Below part is to find all ...
2
votes
2answers
2k views

Event Receiver, Before and After properties

In an event receiver, Item Was Updated. I want to Compare the Moderation status on ListItems to perform some functionality.This is just some of the code. SPList list = web.Lists["DocLib"]; SPListItem ...
0
votes
1answer
100 views

The Version History for a file in the library showing different “Modified By” Column

I am writing a tool to generate the versions of a file/page in the library. My Report should include the version number and the version created by/Modified by name. While getting the modified by ...
0
votes
1answer
523 views

SPWeb.GetFile for an old version of file

I have a document library with enabled versioning, I added an xml file, then added it again, but I have edited one value in it. Now I would like to get the content of both files in C# to compare them. ...
0
votes
1answer
529 views

Get previous versions file in document Library

I'd like get the previous versions of files in document Library, passing as parameter the number of version. else if(getFileObj.versionNumber!=0) { ...
2
votes
1answer
3k views

Does Update-SPSolution trigger a SPFeature.Upgrade()?

I'm looking into Feature versioning and upgrading in SharePoint 2010 and I don't know exactly if the Update-SPSolution cmdlet triggers a SPFeature.Upgrade(). Are <UpgradeActions> elements ...