Sharepoint - How to Access Files / Document Set Programatically

Respondida Sharepoint - How to Access Files / Document Set Programatically

  • viernes, 13 de abril de 2012 5:43
     
     

    Issue :

    I want to be able to poll for the Time Last Modified of some documents, to see if they have changed, then I will copy them to a network area and runs some scripts. IDE VS2010 C#

    Under Sharepoint 2010 (new server warming up for roll out) or Sharepoint 2007 (existing server). Having a document set would be useful because there are 3 documents in the set, and if I do this check mid way when the user is checking in documents, then I will not have a set that is atomic. Thus I think I am talking myself into using SP 2010.

    Background:

    I did a google with “C# how to watch for sharepoint file changes” or “C# how to read sharepoint file time last modified” and came up remarkable short of info. Most was around the FIleWatcher in C# which does not work for a url.

    I did find a reference to MS’s code samples at http://code.msdn.microsoft.com/SharePoint-2010-101-Code-da251182/view/SamplePack however nothing seems close except for “SharePoint 2010 Managing Document Sets Programmatically” which doesn’t build.

    Request:

    -          Code samples / URL to help me read the TLM or version of a program set (or individual file)

    -          Code samples / URL on how to fetch the document set

    Hopefully without me needing to do web type programming, i.e. use some API that does the version and file fetch directly.

    Documents will be in a document folder

    Thanks!!


Todas las respuestas