This document discusses the Client-Side Object Model (CSOM) for SharePoint. It provides an overview of CSOM and its advantages over Server-Side Object Model (SSOM) and Representational State Transfer (REST). CSOM resembles SSOM, uses strongly typed objects, supports batch requests, handles connection authentication and remote errors. It covers more of the SharePoint API than REST. Examples are provided for creating sites using CSOM in C# and JavaScript. New features in CSOM for SharePoint 2013 and Online are also mentioned.
9. Resembles SharePoint Server API, SSOM
Strongly typed
Batch requests
Connection authentication to the server
Remote error handling
Lambda expressions
Object Browser
Covers more SharePoint API than REST
CSOM Advantages
10. using (var clientContext = spContext.CreateUserClientContextForSPHost())
{
if (clientContext != null)
{
WebCreationInformation creation = new WebCreationInformation();
creation.Url = webTitle;
creation.Title = webTitle;
Web newWeb = clientContext.Web.Webs.Add(creation);
clientContext.Load(newWeb);
clientContext.ExecuteQuery();
}
}
Strongly Typed CSOM
27. Get stamps from all the sponsors
Deposit the passport to enter
the prize raffle
Good luck!
The SPSBCN Passport
28. FREE BEER!
Get your ticket at the registration
desk
Network and have fun with your
colleagues!
SharePint sponsored by
Michael Collins Pub
Plaça de Sagrada
Família
Starts at 19:30h
29. They help us improve
for SharePoint Saturday
2016!
Remember to fill your evaluation forms