SharePoint Client object model
SharePoint Client object model
Client Object Model is a new feature of SharePoint 2010. It provides features to program against a SharePoint site using .NET Managed Code or JavaScript.
Using Client Object Model we can access the data from the system where sharepoint is not installed on the machine through webservices, API and JavaScript.
The Client Object Model provides almost all the programming features of the Server Object Model plus advantages in deployment.
We can use the following languages to work with the Client OM:
- Microsoft .NET
- Silverlight
- ECMA Script (JavaScript /JScript)
Query Speed Optimizations:
In the Client OM, reduced network traffic is attained using Query Optimizations. Thus the user will feel reduced round trips and other advantages like paged results, etc.
Using Client OM, you do not need to install the components required by the Server Object Model. Thus Client OM provides much ease to the end user.
The Client OM works by sending an XML Request. The server will return a JSON response which is converted to the appropriate Object Model.
There are two assemblies to be referred for working with the Client Object Model.
Microsoft.SharePoint.Client.dll
Microsoft.SharePoint.Client.Runtime.dll
These assemblies can be found in the 15 Hive folder: %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\ISAPI.