A class of the Microsoft.SharePoint namespace that represents a file in a SharePoint Web site that can be a Web Parts page, an item in a document library, or a file in a folder.

learn more… | top users | synonyms

1
vote
1answer
104 views

How to Copy SPFile to another library while retaining history

I am looking for code that will 100% duplicate a file including all historical versions, dates of versions, comments and anything else. My test code is showing that capturing all those details is a ...
1
vote
1answer
1k views

Programmaticly updating SPFileVersion.Properties Hashtable

Anyone who has experience with programmaticly updating the SPFileVersion.Properties Hashtable? I have a special situation where I would like to modify this Hashtable. Most of you will say: "Why on ...
0
votes
1answer
266 views

Sharepoint 2013 ItemAdded event receiver for renaming files is not working

In SP 2013 I coded an event receiver that intercepts the ItemAdded event and it just renames the file. It is a synchronous event (I added Synchronous in the Elements.xml). This is the code: ...
0
votes
1answer
80 views

How to upload spfile to document library?

I am creating new web in the ItemAdded event receiver and I want to upload the picture that is attached with the item to the newly created site's picture library and if no attachment is there then I ...
0
votes
1answer
798 views

Looking for a way to replace the File in an SPListItem

I have implemented a system for publishing documents from a document library to a Document Centre. This uses a Send To Connection set up with the "Move and leave a link" option. When this is used the ...
2
votes
0answers
45 views

Error thrown after SaveBinary in ItemAdded event handler

I'm working on a ItemAdded event for a document library, and I'm running into this error in SharePoint 2007... The file Lists/Shared Audit Documents/1387/Audit Report.docm has been modified by ...