I’ve been looking for interaction with Sharepoint from a C# code. Basically, it will be a small application which will add/remove data to a remote sharepoint server.
I’ve found a lot of things, but essentially two things:
Once we access with a “ClientContext”, and after we have a “Site”, on which we can found “List”, etc…
The other thing I found is to access with “SPSite”, and we have “SPList”, “SP…”, etc..
Am I right? Is this two different to access data? Why this? Which one should I use? On what it depends?
Is there some more possibilites with one of these ways?
Thank you very much 🙂
Edit: I don’t know why, I cannot put a “Hi,” at the start of my question, sorry :/
The
ClientContext,Site,WebandListclasses are part of SharePoint’s client object model. They allow you to manipulate SharePoint objects from any client machine.The
SPContext,SPSite,SPWebandSPListclasses are part of SharePoint’s server object model. They allow you to manipulate SharePoint objects from code deployed on the SharePoint servers themselves.These two technologies are not used in the same way. For instance, query filtering and bulking are important concepts of the client object model, but not of the server object model.