Like with the .NET managed code and JavaScript CSOMs, CSOM libraries are available for both Windows Phone and Silverlight. This availability allows developers to use the same common library and patterns to integrate Windows Phone mobile apps in almost the same way they would in a JavaScript-based SharePoint-hosted application. The reason mobile apps are not exactly the same is because a developer must take into consideration a few additional things in mobile scenarios that are not as prevalent in other types of applications. For example, you must think about scenarios where the phone is not connected to a data network. Will it support offline data sync? What about on different types and speeds of data network? How do you connect to the SharePoint Server while you are not on the same network and possibly behind a firewall? Finally, what about your authentication options? These are all things you must consider and design for in your mobile applications.

The Windows Phone CSOM assists you with some of these issues; however, many others are up to you as a developer to work out how you want to support them. The Windows Phone CSOM offers support for new authentication options by supporting forms authentication, basic authentication, and Office 365 authentication. Previously, there wasn’t a CSOM library that would run on Microsoft’s Windows Phone, and communication was limited to Web service calls. Additionally, authentication was very hard, nearing impossible for many. ...

Get Beginning SharePoint 2013 Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.